[JBoss Seam] - Re: Seam-Managed Persistence Context
by lightbulb432
anonymous wrote : If you used another persistence context, your objects would become detached when the persistence context ended.
But doesn't what you said above apply to all persistence contexts, including the SMPC? What still confuses me is when does an SMPC end in comparison to, say, a SFSB extended PC? What's so special about SMPC...when is it created, when does it end, what requirements does it have in terms of associating itself with transactions, etc?
Will my code look any different (I don't mean @In vs @PersistenceContext) in terms of the way I deal with entities from using another PC to using SMPC? (e.g. will I never have to do a merge again, what?) What should I keep in mind while I code so that I can actually take advantage of the fact that I'm using an SMPC?
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4000675#4000675
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4000675
19 years, 3 months
[JBoss Seam] - Re: Seam and URL rewriting
by norman.richards@jboss.com
The conversation id must go with the request. It can go in the URL or it can be transmitted with the view data in a normal JSF POST. It obviously can't be stored in the HTTP session, because then you could have only one conversation per session. In theory it could go in a cookie if web browsers implemented conversational cookies, but they don't.
But, actually, that's not a bad idea. It would be nice if cookies could be marked as "conversational" and would be transmitted on subsequent requests only on clicks/requests from the page that originated the conversation.
It would also solve the general cookie problem because users who are paranoid could turn of cookies completely. There would be no privacy harm in using conversation cookies, because they would never be persisted by the browser, could never be used to transfer data between websites and the user could be sure that when he closed a window that his "state" would be gone. (think public internet access, etc...)
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4000669#4000669
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4000669
19 years, 3 months