Forums Register Login

The creation of EJBObject

+Pie Number of slices to send: Send
The ejbCreate method of a stateless session bean can get a reference for EJBObject through SessionContext. So that means ejbCreate on the stateless session bean lying in pool is called when the client invokes a business method. Before that container just calls constructor and setSessionContext and places it in pool.
Otherwise, if the sequence of constructor, setSessionContext and ejbCreate is called at containers will (before placing bean in the pool) than at that time EJBObject might not exist.
+Pie Number of slices to send: Send
Opps someone already posted this question thanks anyway
You ridiculous clown, did you think you could get away with it? This is my favorite tiny ad!
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com


reply
reply
This thread has been viewed 604 times.
Similar Threads
Why can stateless ejbCreate() access EJBObject???
getEJBObject in ejbCreate (stateless session bean)
Stateless Sessionbean ejbCreate() mtd
Session Bean
calling getEJBObject() in ejbCreate() of Stateless session bean
More...

All times above are in ranch (not your local) time.
The current ranch time is
Mar 29, 2024 07:35:31.