This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes EJB and other Java EE Technologies and the fly likes Stateful Session Bean Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » EJB and other Java EE Technologies
Bookmark "Stateful Session Bean " Watch "Stateful Session Bean " New topic
Author

Stateful Session Bean

Prakash Pillai
Greenhorn

Joined: Feb 17, 2002
Posts: 12
Hi All,
I would like to knw,how can i use stateful session bean across the pages,
i.e as we use setAttribute() and getAttribute(),in servlets, how can i use the stateful session bean in same way ? is it possible ?
how can i keep track of a client or user ?
Thanx in advance
Prakash
Geeta Ramasami
Ranch Hand

Joined: Mar 05, 2003
Posts: 72
Hi,
I think u can use SessionContext for session beans and EntityContext for entity beans as long as the beans are going to run in the same context..U can use this like a servletContext..
Regards
Geeta
Prakash Pillai
Greenhorn

Joined: Feb 17, 2002
Posts: 12
geeta can u give me some small code doing the same.so that it will give me clear picture
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Stateful Session Bean
 
Similar Threads
x JSP's use one EJB ?????
x JSP's use one EJB ?????
Stateful Session Bean
No concurrent calls on stateful beans exception
how to handle session in EJB