This week's giveaway is in the Java/Jakarta EE forum.
We're giving away four copies of Java EE 8 High Performance and have Romain Manni-Bucau on-line!

Thank you.
Posts: 14
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I agree with Steven, if you read the page 101, 103, 224 � 227 in Head First Ejb

1. I think Container calls ejbCreate() to create bunch of beans and they will stay in pool.

2. EJBObject gets created when client call create().

3. Only when method gets called on the EJBObject, that is when the Bean comes out of the pool and get bound to the EJBObject.

4. So when ejbCreate() called in stateless bean it would have no clue about the EJBObject.

5. Same thing with ejbRemove(). Bean will be in pool not attached to any EJBObject, when container calls ejbRemove() on bean.

6. when Client calls remove() on the stub, only the Stub and EJBObject () gets removed for that client in stateless session bean.

Experts please please clarify. We have 5 people in out study group, all of us are confused. Please help
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!