Michel, Actually, the EJB Container does not need to create an instance of a SLSB when a client calls a create().
<EJB1.1> A stateless session bean instance's life starts when the container invokes newInstance() on the session bean class to create a new instance. Next, the container calls setSessionContext() followed by ejbCreate() on the instance. The container can perform the instance creation at any time-there is no relationship to a client's invocation of the create() method. </EJB1.1> <vendor> In the case of our AppServer, there is no relationship to a client's invocation of the create() method and the EJB Container's invocation of newInstance() (followed by a setSessionContext & an ejbCreate()). </vendor> -krish > -----Original Message----- > From: A mailing list for Enterprise JavaBeans development > [mailto:[EMAIL PROTECTED]]On Behalf Of Michel Teunissen > Sent: Thursday, November 29, 2001 12:00 PM > To: [EMAIL PROTECTED] > Subject: Invocation of ejbCreate on serving a SLSB instance from the > pool? > > > Hi all, > > This question is focussed on the EJB 1.1 spec. > > When I do a SLSBHome.create(), can I expect the container to always > execute the ejbCreate() on the instance it's returning to me? Or is this > only done when instances are created for the method-ready pool? > > Michel > > =========================================================================== > To unsubscribe, send email to [EMAIL PROTECTED] and include in the body > of the message "signoff EJB-INTEREST". For general help, send email to > [EMAIL PROTECTED] and include in the body of the message "help". > > =========================================================================== To unsubscribe, send email to [EMAIL PROTECTED] and include in the body of the message "signoff EJB-INTEREST". For general help, send email to [EMAIL PROTECTED] and include in the body of the message "help".
