[jboss-user] [JBoss Seam] - Re: conversations, propagations etc ... - need explanation

jacob.orshalick do-not-reply at jboss.com
Wed Oct 17 10:59:05 EDT 2007


Which version of Seam are you using?  conversation-is-long-running-parameter is not included in latest (Seam 2.0.0.CR2) due to the addition of conversation-required.

The key to understanding conversations is the conversationId sent with the request.  The conversationId is maintained along with the view (as you've discovered) and indicates to Seam what the foreground long-running conversation is.  This is why the back-button just seems to work.  If the user goes back to a previous view, the conversationId will be sent with that view in the request so our conversation context is restored (if it exists otherwise redirect to no-conversation-view-id).

Feel free to parse the code but the details of how this works should really be transparent if you use the methods of propagation provided i.e. @Begin, s:link, s:conversationPropagation, etc).  Understanding the semantics is the key.  As long as the appropriate conversationId is sent with the request, your conversation state will be restored.

Hope that helps.

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4096132#4096132

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4096132



More information about the jboss-user mailing list