• 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
  • Paul Clapham
  • Tim Cooke
  • Jeanne Boyarsky
  • Liutauras Vilda
Sheriffs:
  • Frank Carver
  • Henry Wong
  • Ron McLeod
Saloon Keepers:
  • Tim Moores
  • Frits Walraven
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
Bartenders:
  • Al Hobbs
  • Piet Souris
  • Himai Minh

SLSB Pool & Entity Bean Pool

 
Ranch Hand
Posts: 312
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Note to self: don't get into a fist fight with a cactus. Command this tiny ad to do it:
the value of filler advertising in 2021
https://coderanch.com/t/730886/filler-advertising
reply
    Bookmark Topic Watch Topic
  • New Topic