About ejbcreate()??
2 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   shanthi_priya
Posted On:   Thursday, August 5, 2004 08:10 PM

when client invoke create() method in home interface this causes the container to invoke newInstance() on bean class to create new bean instance, next container calls setSessionContext() followed by ejbcreate().
correct me if i am wrong!

My question is
Q) what objects does create() method create. is it remote objects or bean objects?
Q) can container call bean class newInstance() method from the home interface?
Q) whats purpose of setSessionContext() method and what will it return??
Q) If newInstance() method creates new bean instance then why ejbcreate???

Re: About ejbcreate()??

Posted By:   Anonymous  
Posted On:   Sunday, August 8, 2004 04:51 AM





Q) what objects does create() method create. is it remote objects or bean objects?





A ) EJb Object..





Q) can container call bean class newInstance() method from the home interface?




A ) create method invoked in the home interface will make the container invoke new Instance() on the bean.





Q) whats purpose of setSessionContext() method and what will it return??




Associates the bean with the session context. Your bean can query the context about its current transactional state, its current security status etc...





Q) If newInstance() method creates new bean instance then why ejbcreate???




A ) ejbCreate will initialize the bean





Refer to Mastering EJB by Ed Roman for more information.

Re: About ejbcreate()??

Posted By:   suresh_kumar  
Posted On:   Thursday, August 5, 2004 11:05 PM

Q) what objects does create() method create. is it remote objects or bean objects? Q) can container call bean class newInstance() method from the home interface? Q) whats purpose of setSessionContext() method and what will it return?? Q) If newInstance() method creates new bean instance then why ejbcreate???
About | Sitemap | Contact