• 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

EJBObject Lifecycle?

 
Ranch Hand
Posts: 60
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
What's the EJBObject Lifecycle? Is an EJBObject up to the client holding the reference of the component interface which implemented by the EJBOject? If the client release the component interface reference (set the reference variable to null), that will be end of the EJBObject since it doesn't associate with any client. I often mix up and confuse the EJBObject with bean instance.
 
Ranch Hand
Posts: 143
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
The life of EJBObject is independent of the client nulling the reference coz then handles wud not make sense. The main purpose of handle is to connect back to the same EJBObject. The example in HFE on 138 says one can pass a handle thru say an email and continue shopping from there. Isn't that cool. Offcourse it depends on the session timeout.
[ March 02, 2004: Message edited by: Sudhir Vallam ]
 
Ali Ragi
Ranch Hand
Posts: 60
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
So the lifetime of an EJBObject is up to the timeout, and the remove method call on client view interface will also destroy the EJBObject, right?
 
There are no more "hours", it's centi-days. They say it's better, but this tiny ad says it's stupid:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic