Conversational State in EJB and HTTPSessions (Core J2EE Patterns)
Hi all,
I've read the book (Core J2EE Patterns) mentioned in this forum... and it's really great!!
But i have a question about a - from my point of view - important topic when developing web-application.
Where and how to store EJB-References?
Perhaps i have not read the book carefully enough... but is there a topic which points this out very clear?
Given this example...
I have a web-front-end for a - let's say - registration-workflow.
There are n screens where the users types in information. At the end all data where stored in a database.
One design could be the use of the Controler-Dispatcher-Pattern with some help of Business-Delegates and
Service-Locator in the web-container. In the EJB-Part i can use a Session-Facade which coordinate the
Entity-Beans...
My question now is where - if so - to store the reference of the statefull-session-bean when the
environment of the ejb-client is stateless (ex. http)? I've seen examples where the references where stored
in the http-session. Is this the "preferred" place? What are the consequences (Object must be serializable...)
in a cluster-environment? What about the handles?
In my last project i've implemented this as described (stored in http-session)...
Can anybody share the same experience or has additional comments?
Thanks
Sandro

