Win a copy of Java Mock Exams (software) this week in the Programmer Certification (OCPJP) forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Session Bean

 
Sridhar Raman
Ranch Hand
Posts: 142
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Why doesn't Session Beans have an unsetSessionContext() like the EntityBean()??? Any light on this please?
Thanks for your time
-Sridhar-
 
narayanan
Greenhorn
Posts: 25
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Session beans are not persistent and you can remove the bean where in exactly bean gets removed so no context present. For entity beans its persistent on remove call you are removing the row from a table that is a persistent data. So if you have lot of entity beans in your pool which is over capacity for the system and that has to be reduced but remove cant be called so unsetEntityContext will be used to remove Context and release the entity bean from the pool to non existent state. There is no need of unsetSessionContext because there are no 2 case scenarios for ejbRemove for session beans unlike entity beans.
ok then.
regards
Narayanan
SCJP2 , SCEA (Part 1)
 
Happiness is not a goal ... it's a by-product of a life well lived - Eleanor Roosevelt. Tiny ad:
the new thread boost feature: great for the advertiser and smooth for the coderanch user
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!