• 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
  • Tim Cooke
  • paul wheaton
  • Jeanne Boyarsky
  • Ron McLeod
Sheriffs:
  • Paul Clapham
  • Liutauras Vilda
  • Devaka Cooray
Saloon Keepers:
  • Tim Holloway
  • Roland Mueller
Bartenders:

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 ]
 
Please enjoy this holographic presentation of our apocalyptic dilemma right after this tiny ad:
Smokeless wood heat with a rocket mass heater
https://woodheat.net
reply
    Bookmark Topic Watch Topic
  • New Topic