Hi, I'm new to ejb. My web app has a series of forms representing a wizard like process. This form will be presented thru a series of jsp pages. Rather than save the session state in URL, or in maintain the session thru HttpSession or persistance, I'd like to consider a stateful session bean. My question is, with the user sending a request as each stage of the "wizard" is complete, how would I maintain the reference to the stateful session bean instance first invoked? I'm using an MVC framework that has servlets fielding requests, talking to EJB layer, and returning back to the view (jsp).
Thanks for any tips.
Store a reference to you Stateful Session bean in the HttpSession is the way to acheive this.
When getting it from the session check to see if it is null and if so create a new Satetful session bean. You may want to wrap this up in a utility class to make the calling code simpler.