> When is the ejbCreate of stateless session bean is called?

it is called when the container does a newInstance on the session bean

-saurabh

>
> PS: u might have to follow the whole of this mail.
>
> Thanks.
>
> -----Original Message-----
> From: Dave Wolf [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, August 17, 2000 2:04 AM
> To: [EMAIL PROTECTED]
> Subject: Re: Life cycle of beans(Session and entity)
>
>
> No stateless session beans can only have emtpy creates.  I was incorrect
> when I earlier inferred you could.
>
> You can however still manage state if each user uses a unique login, then
> you can query the container for the users name to hash state with.
>
> Dave Wolf
> Internet Applications Division
> Sybase
>
>
> > -----Original Message-----
> > From: A mailing list for Enterprise JavaBeans development
> > [mailto:[EMAIL PROTECTED]]On Behalf Of Vivek Singh
> > Sent: Wednesday, August 16, 2000 6:35 AM
> > To: [EMAIL PROTECTED]
> > Subject: Re: Life cycle of beans(Session and entity)
> >
> >
> > what u say seems quite logical to me....but the says otherwise
> > e.g. Ed Roman
> > matering EJB.
> > I can copy and paste as these things r diabled in the book.
> >
> > another question:
> > Can we have stateless session bean having ejbCreate method with
> > arguments....
> >
> > If we can do that then we can manage session on our own....i am stating
a
> > probability where ejbCreate() method of stateless session bean need to
be
> > called everytime...
> >
> > Can someone clarify the confusion....
> >
> > Thanks
> >
> > Vivek
> >
> > -----Original Message-----
> > From: Rajesh Balu [mailto:[EMAIL PROTECTED]]
> > Sent: Friday, June 02, 2000 1:19 PM
> > To: [EMAIL PROTECTED]
> > Subject: Re: Life cycle of beans(Session and entity)
> >
> >
> > While it is true that create() and ejbCreate() methods for a
> > stateless bean
> > cannot take any parameters, but when a client calls create() method on a
> > stateless bean, ejbCreate() is not called on the bean instance.
> > When an EJB
> > server starts up, it creates a certain amount of stateless bean
instances,
> > calls the ejbCreate() method for each of them and stores them in the
pool.
> > Subsequently, when a client invokes create() method on the home,
> > the server
> > simply picks up an instance randomly and associates it to the EJBObject.
> > This
> > is significantly different from Entity and Stateful beans for which, the
> > create() method is despatched to the corresponding ejbCreate() method.
> >
> > I hope my understanding is correct. If there is anything wrong, please
> > correct
> > me.  Thanks.
> >
> > Vivek Singh wrote:
> >
> > > The container pools the instances of the beans. When multiple
> > clients call
> > > create()......ejbCreate method of the bean will be called in all the
> > > instances of the pooled bean......then the client is handed over an
> > > EJBObject.
> > > Same happens for statefull session beans...the difference is u can
pass
> > > parameters to the create method and the matching
> > ejbCreate(.....) will be
> > > called in that instance. Same for entity beans.......the instance can
be
> > > cached in this case if used before.
> > >
> > > -----Original Message-----
> > > From: Samuel Abraham [mailto:[EMAIL PROTECTED]]
> > > Sent: Monday, August 14, 2000 6:07 PM
> > > To: [EMAIL PROTECTED]
> > > Subject: Life cycle of beans(Session and entity)
> > >
> > > Hi all,
> > > I have a doubt regarding bean life cycle(Session and Entity).
> > > Assume that many clients are calling the create() method of a
stateless
> > > session beans.
> > > Will the ejbCreate() be called whenever the create() method is called?
> > > What will be the scenario in the case of stateful and entity beans?
> > > TIA
> > > Samuel
> > >
> > >
________________________________________________________________________
> > > Get Your Private, Free E-mail from MSN Hotmail at
http://www.hotmail.com
> > >
> > >
> > ==================================================================
> > =========
> > > 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".
> >
> > ==================================================================
> > =========
> > 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".
> >
> >
>
>
===========================================================================
> 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".
>

===========================================================================
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".

Reply via email to