Hi,

Conversations are stored in the session (indirectly). So when the http
session times out, the conversations automatically go too. The timeout
mentioned here is just in case you want conversations to time out more
quickly than the http session.

Until recently this shorter timeout was hard-wired to 30 minutes. It is
now configurable via the scope declaration in the spring file. And as
Mario mentions, if you don't specify a timeout there the default is now
*no* timeout (ie timeout only when session goes).

I hope that's what you were asking about..

Kito, you might like to look at the new documentation added to the
website recently (esp. in core). It's still a work in progress but any
feedback on what's there so far would be very welcome..

Regards,

Simon

On Fri, 2007-09-07 at 23:35 +0200, Martin Marinschek wrote:
> Hi Mario,
> 
> why do I have to configure a timeout? Can't the default be taken from
> the session timeout?
> 
> regards,
> 
> Martin
> 
> On 9/7/07, Kito D. Mann <[EMAIL PROTECTED]> wrote:
> > Very cool, Mario. FYI, I'll be talking about Orchestra (among other things)
> > at JavaZone next week
> > (http://www4.java.no/web/show.do?page=92&articleid=5276). This means I may
> > be asking a lot of questions over the next few days :-).
> >
> > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> > Kito D. Mann - Author, JavaServer Faces in Action
> > http://www.virtua.com - JSF/Java EE consulting, training, and mentoring
> > http://www.JSFCentral.com - JavaServer Faces FAQ, news, and info
> >
> > * Sign up for the JSF Central newsletter!
> > http://oi.vresp.com/?fid=ac048d0e17 *
> >
> >
> > > -----Original Message-----
> > > From: Mario Ivankovits [mailto:[EMAIL PROTECTED]
> > > Sent: Friday, September 07, 2007 11:36 AM
> > > To: MyFaces Development
> > > Subject: [orchestra] changed scope configuration
> > >
> > > Hi!
> > >
> > > Today we cleaned up the way how to configure the different scopes.
> > >
> > > Basically this means:
> > > * you HAVE to configure a timeout now. The default is to never timeout
> > > a
> > > conversation on its own.
> > > * the flash scope is now configured through the "lifetime" property.
> > >
> > > Please see here an example or refer to the updated installation
> > > documentation (once it has been published which might take some hours)
> > >
> > >                 <entry key="conversation.normal">
> > >                     <bean
> > > class="org.apache.myfaces.orchestra.conversation.spring.SpringConversat
> > > ionScope">
> > >                         <property name="timeout" value="35" />
> > >
> > >                         <property name="advices">
> > >                             <list>
> > >                                 <ref
> > > bean="persistentContextConversationInterceptor"/>
> > >                             </list>
> > >                         </property>
> > >                     </bean>
> > >                 </entry>
> > >                 <entry key="conversation.flash">
> > >                     <bean
> > > class="org.apache.myfaces.orchestra.conversation.spring.SpringConversat
> > > ionScope">
> > >                         <property name="advices">
> > >                             <list>
> > >                                 <ref
> > > bean="persistentContextConversationInterceptor"/>
> > >                             </list>
> > >                         </property>
> > >                         <property name="lifetime" value="flash"/>
> > >                     </bean>
> > >                 </entry>
> > >
> > >
> > > Ciao,
> > > Mario
> >
> >
> 
> 

Reply via email to