• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

What hapeens to EJBObject after remove()

 
Awishek sinha
Ranch Hand
Posts: 62
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
After a remove is called either on home/component interface the bean instance is removed by the container(statefull & entity beans)
also calling remove() on EJBObject does not remove the HomeObject from caontainer but but happens to EJBObjectdoes it also get removed ?
 
Gowher Naik
Ranch Hand
Posts: 643
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
i am not able to understand 2nd part of your question.
I will try to answer your question
When client call remove on Statefull bean the bean is remove and hence eligible for garbage collection
On Entity bean when client call remove the bean is not removed in real sense actually it goes back to pool but for client Perspective it is removed.
HomeObject is never removed from container the client cannot remove HomeObject in anyway.
 
Awishek sinha
Ranch Hand
Posts: 62
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What happens to EJBObject after remove is called on component interface /homeinterface
 
Awishek sinha
Ranch Hand
Posts: 62
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I got the answer the container kills the EJBObject along with bean instance
the stub of EJBObject might be there on client's heap but calling any method on it will through an exception
Thanks anyways
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic