• 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:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Session Bean pooling

 
Ranch Hand
Posts: 295
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,

Are session beans (stateless & stateful) being pooled in their lifecycle?
Thanks.
 
Ranch Hand
Posts: 85
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,

Only StateLess Session Bean are pooled in their life cycle.
StateFull Session Bean are passivated, it is a diferent thing.

Vagner
 
Ranch Hand
Posts: 1183
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Steven,

Look at this beautiful exercise sheet from Oreilly - http://examples.oreilly.com/hfjejb/EJBSharpenA.pdf
Page five has a nice matrix of different characteristics of the four different bean types.

It says about the pool:

Stateless Session Beans: Yes. Since they don't keep and client-specific data, you don't need one per each client.

Stateful Session Beans: Nope. Stateful beans never have a pool.

Entity Beans: Yes. When an entity bean is not *being* a specific entity (row from DB), it stays in the pool.

Message-driven Beans: Yes. They're a lot like statelss session beans. Any bean of a particular type is the same as any other.



Regards,
Dan
[ January 11, 2005: Message edited by: Dan Drillich ]
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic