• 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
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Session Bean

 
Ranch Hand
Posts: 142
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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-
 
Greenhorn
Posts: 25
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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)
 
reply
    Bookmark Topic Watch Topic
  • New Topic