• 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 all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Bear Bibeault
  • Junilu Lacar
Sheriffs:
  • Jeanne Boyarsky
  • Tim Cooke
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • salvin francis
  • Frits Walraven
Bartenders:
  • Scott Selikoff
  • Piet Souris
  • Carey Brown

EJBObject Lifecycle?

 
Ranch Hand
Posts: 60
  • Mark post as helpful
  • send pies
  • 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
  • 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
  • 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?
 
"How many licks ..." - I think all of this dog's research starts with these words. Tasty tiny ad:
Thread Boost feature
https://coderanch.com/t/674455/Thread-Boost-feature
    Bookmark Topic Watch Topic
  • New Topic