Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Stateless Session Bean as Stateful session bean  RSS feed

 
Pearlo Muthukumaran
Ranch Hand
Posts: 79
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all,
If Client specific information like say session id is persisted in a database
during ejbPassivate() and retrieval of the same during ejbActivate() call-back, can we simulate the stateful behavior in a stateless session bean?
Is the above a valid approach? Can this technique be deployed to replace the usage of resource-intensive stateful session bean with stateles session bean?
Regards
Muthu
 
amit mawkin
Ranch Hand
Posts: 73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
passivating Session ID to a persistent storage is
against the basic principals of Stateless Session Beans
Still this could be done.
Weblogic provides a way check the documentation at
http://edocs.bea.com
regards,
 
Parul Patidar
Greenhorn
Posts: 17
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
are ejbActivate and ejbPassivate called by container for stateless session beans? lifecycle diagram ofstateless session beans does not show that
Originally posted by amit mawkin:
passivating Session ID to a persistent storage is
against the basic principals of Stateless Session Beans
Still this could be done.
Weblogic provides a way check the documentation at
http://edocs.bea.com
regards,
 
Lasse Koskela
author
Sheriff
Posts: 11962
5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
are ejbActivate and ejbPassivate called by container for stateless session beans? lifecycle diagram ofstateless session beans does not show that

Nope, only for stateful session beans. It doesn't make sense to passivate stateless bean instances.
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!