Forums Register Login

EJBObject Lifecycle?

+Pie Number of slices to send: Send
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.
+Pie Number of slices to send: Send
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 ]
+Pie Number of slices to send: Send
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?
I miss the old days when I would think up a sinister scheme for world domination and you would show a little emotional support. So just look at this tiny ad:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com


reply
reply
This thread has been viewed 865 times.
Similar Threads
Lifecycle of EJB Objects
getEJBObject available in ejbcreate for stateles session bean
Stateless bean removal
Coffee Cram Ch 5 Question 8
ejbCreate Stateless Session Bean
More...

All times above are in ranch (not your local) time.
The current ranch time is
Mar 29, 2024 04:28:05.