Can anyone please clarify me this question. Whether the userstate maintained in HttpSession can be made avaiable in EJB Stateful/Stateless session bean?
Well, the EJB doesn't have direct access to the HttpSession but you can pass the session to the EJB as a parameter (assuming everything in it is Serializable). Not a good thing to do though, since it ties your EJB method to a web client and any cahnges your EJB method makes to the HttpSession will not be reflected in the actual HttpSession itself. [ March 19, 2007: Message edited by: Paul Sturrock ]
So in that case, you would have to get the stuff out of the HttpSession, put it into some other class that you create, pass that to the EJB, do stuff, and put the changes into that new class, return that, then take it out of that object, and put it into the HttpSession.