Win a copy of Learning OpenStack Networking: Build a solid foundation in virtual networking technologies for OpenStack-based clouds this week in the Cloud/Virtualization forum!
  • 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 all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Liutauras Vilda
  • Campbell Ritchie
  • Tim Cooke
  • Bear Bibeault
  • Devaka Cooray
Sheriffs:
  • Jeanne Boyarsky
  • Knute Snortum
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Ganesh Patekar
  • Stephan van Hulst
  • Pete Letkeman
  • Carey Brown
Bartenders:
  • Tim Holloway
  • Ron McLeod
  • Vijitha Kumara

SLSB Pool & Entity Bean Pool  RSS feed

 
Ranch Hand
Posts: 312
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi All

I would like to know the exact difference between the Stateless Session Bean Pool & the Entity Bean Pool. The SLSB pool comprises of a bunch of Beans of similiar type say 10 CardVerifier beans. Each has the same functionality.
But what is with the Entity Bean pool. Say If i have an Entity Beans pool of 10 customers. Does it mean Entity Bean with PK1, PK2,PK3 & so on i.e 10 differnt entity beans representing 10 different customers or is it that all Entity Beans in the Pool are EntityBean with PK1 i.e 10 instances of EntityBeanPK1 (10 entity beans of the same single customer)

Bye
Manish
 
Ranch Hand
Posts: 87
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Manish

When Entity BEans are in the pool they have no identity. That is, a bean in the pool doesn't represent any real entity. Any CustomerBean in the pool can be chosen by the container to play Customer #5.

cheers
 
Ranch Hand
Posts: 333
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
To add to what Lionel said, the stateless session beans are still active while inside a pool. That's why we don't need an ejbActivate()/ejbPassivate() for SLSB. But for entity beans, the beans are inactive in the pool.
 
Ranch Hand
Posts: 1683
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
All beans in the pool are active in that they are objects on the heap, ready to service a client request. This applies to all bean types, be they stateless session, entity or message-driven.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!