This week's book giveaway is in the Clojure forum.
We're giving away four copies of Clojure in Action and have Amit Rathore and Francis Avila on-line!
See this thread for details.
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

SLSB Pool & Entity Bean Pool

 
manish ahuja
Ranch Hand
Posts: 312
  • 0
  • 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
 
Lionel Orellana
Ranch Hand
Posts: 87
  • 0
  • 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
 
Giju George
Ranch Hand
Posts: 333
  • 0
  • 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.
 
Roger Chung-Wee
Ranch Hand
Posts: 1683
  • 0
  • 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.
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic