Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Stateful Session Bean

 
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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic