You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by footh <fo...@yahoo.com> on 2005/07/27 06:16:33 UTC

JavaFlow: getting the application context

Does anyone know how to get the application context
from within a javaflow?  I'm looking for something
equivalent to the "cocoon.context" code in a
javascript-based flow.


		
____________________________________________________
Start your day with Yahoo! - make it your home page 
http://www.yahoo.com/r/hs 
 

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org


Re: JavaFlow: getting the application context

Posted by footh <fo...@yahoo.com>.
Thanks Thomas, I read your first response and replied
to it about a week ago.

At first I wasn't sure what you meant by the cocoon
"standalone" class but I have been investigating the
Avalon framework over the past few days and I'm
starting to come to an understanding.

I will probably try to implement something like this. 
Is there any more documentation you could point me to
or is Avalon (now Excalibur) pretty much what I need
to know?

--- Thomas Lutz <ma...@gmx.at> wrote:

> Copy of my answer to your previous posting:
> 
> I am using quite the same environment as you
> do...javaflow, jxtemplates, 
> some custom generators.
> 
> Looking around I found no application object, too,
> but :-) maybe the 
> this concept might help:
> 
> Create a "standalone" cocoon independent class, that
> is responsible for 
> building your items cache. If you implement this
> class as a singleton it 
> would just act like a application object. I don't
> think that you need 
> much synchronizing, so it should be no performance
> issue.. it would 
> behave like the logger.
> 
> This class could either recieve events from your
> database, or a 
> "administration trigger reload webpage", or poll the
> database every 50 
> hits for new items...
> 
> I don't know how fit you are in java, but that it is
> not really hard to 
> implement, and I think it should work... although I
> am not really a java 
> guru yet :-) .
> 
> HTH,
> tom
> 
> footh schrieb:
> 
> >Does anyone know how to get the application context
> >from within a javaflow?  I'm looking for something
> >equivalent to the "cocoon.context" code in a
> >javascript-based flow.
> >
> >
> >		
>
>____________________________________________________
> >Start your day with Yahoo! - make it your home page
> 
> >http://www.yahoo.com/r/hs 
> > 
> >
>
>---------------------------------------------------------------------
> >To unsubscribe, e-mail:
> users-unsubscribe@cocoon.apache.org
> >For additional commands, e-mail:
> users-help@cocoon.apache.org
> >
> >
> >  
> >
> 
> 
>
---------------------------------------------------------------------
> To unsubscribe, e-mail:
> users-unsubscribe@cocoon.apache.org
> For additional commands, e-mail:
> users-help@cocoon.apache.org
> 
> 



		
____________________________________________________
Start your day with Yahoo! - make it your home page 
http://www.yahoo.com/r/hs 
 

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org


Re: JavaFlow: getting the application context

Posted by Thomas Lutz <ma...@gmx.at>.
Copy of my answer to your previous posting:

I am using quite the same environment as you do...javaflow, jxtemplates, 
some custom generators.

Looking around I found no application object, too, but :-) maybe the 
this concept might help:

Create a "standalone" cocoon independent class, that is responsible for 
building your items cache. If you implement this class as a singleton it 
would just act like a application object. I don't think that you need 
much synchronizing, so it should be no performance issue.. it would 
behave like the logger.

This class could either recieve events from your database, or a 
"administration trigger reload webpage", or poll the database every 50 
hits for new items...

I don't know how fit you are in java, but that it is not really hard to 
implement, and I think it should work... although I am not really a java 
guru yet :-) .

HTH,
tom

footh schrieb:

>Does anyone know how to get the application context
>from within a javaflow?  I'm looking for something
>equivalent to the "cocoon.context" code in a
>javascript-based flow.
>
>
>		
>____________________________________________________
>Start your day with Yahoo! - make it your home page 
>http://www.yahoo.com/r/hs 
> 
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
>For additional commands, e-mail: users-help@cocoon.apache.org
>
>
>  
>


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org