aspose file tools*
The moose likes Architect Certification (SCEA/OCMJEA) and the fly likes Manage session between servlet and session bean Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Certification » Architect Certification (SCEA/OCMJEA)
Bookmark "Manage session between servlet and session bean" Watch "Manage session between servlet and session bean" New topic
Author

Manage session between servlet and session bean

Jim Baker
Ranch Hand

Joined: Mar 10, 2002
Posts: 177
Hi,
I want to use a servlet to call a session EJB.
Since there is only one instance of servlet in
a web container, how can a stateful session
know which client is calling it? Should I use
stateless sessionbean and pass
HttpSession obj from servlet to the stateless
session bean?
Any comments?
JB
NC
Greenhorn

Joined: Apr 18, 2002
Posts: 3
As far as know, in such cases, you should keep the handle of the stateful session bean in HttpSession and leter retrieve the bean using handle. Please let me know whether this answers your question.
Cheers,
Naresh
Jim Baker
Ranch Hand

Joined: Mar 10, 2002
Posts: 177
Yes. U did. Thanks.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Manage session between servlet and session bean