Win a copy of Spring Boot in Practice this week in the Spring forum!
  • 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
  • Tim Cooke
  • Ron McLeod
  • Jeanne Boyarsky
  • Paul Clapham
Sheriffs:
  • Liutauras Vilda
  • Henry Wong
  • Devaka Cooray
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • Al Hobbs
  • Carey Brown
Bartenders:
  • Piet Souris
  • Mikalai Zaikin
  • Himai Minh

clarification about ejbRemove()

 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
For stateful session bean, when the client doesnt make any calls for a long time , the bean gets passivated.

But there is a scenario mentioned in the Headfirst book (Pg: 210) that says that Bean timeout while active calls ejbRemove() on the bean

Could someone distinguish the 2 scenarios as to when the client doesnt make any methods calls, is the bean passivated or removed?
 
Ranch Hand
Posts: 33
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
If bean instance hasn't been used in a period of time, container call its ejbPassivate(). If Ejb object's life time is expired, container call its ejbRemove().
Please refer to EJB 2.0 spec Page 78, 79
 
reply
    Bookmark Topic Watch Topic
  • New Topic