• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Tim Cooke
  • Campbell Ritchie
  • paul wheaton
  • Ron McLeod
  • Devaka Cooray
Sheriffs:
  • Jeanne Boyarsky
  • Liutauras Vilda
  • Paul Clapham
Saloon Keepers:
  • Tim Holloway
  • Carey Brown
  • Piet Souris
Bartenders:

Stateless Session Bean as Stateful session bean

 
Ranch Hand
Posts: 79
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Ranch Hand
Posts: 73
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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,
 
Greenhorn
Posts: 17
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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,

 
author
Posts: 11962
5
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
reply
    Bookmark Topic Watch Topic
  • New Topic