Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

EJBObject Lifecycle?

 
Ali Ragi
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.
 
Sudhir V
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?
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic