This week's book giveaway is in the Java 9 forum.
We're giving away four copies of Java 9 Modularity: Patterns and Practices for Developing Maintainable Applications and have Sander Mak & Paul Bakker on-line!
See this thread for details.
Win a copy of Java 9 Modularity: Patterns and Practices for Developing Maintainable Applications this week in the Java 9 forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Stateful Session Bean  RSS feed

 
Prakash Pillai
Greenhorn
Posts: 12
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 72
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 12
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
geeta can u give me some small code doing the same.so that it will give me clear picture
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!