Hi, Suppose I have a stateful session bean. USer is logged into the aplication and doing his work. Suppose, in between application server crashed or shutdown. In that case, if we restart the server, can I restore or load my previous state of my stateful session bean before server crash / shutdown back after the server restarted again ? Can we store the state in the disk? Murthy A Suryanarayana GE Financial Assurance LTC - OPS2000 Project ------------------------------------------------------------------------ ------------------- Day : (415) 492 7834 Dial-Com : 8 * 277 7834 Fax : (415) 492 7699 mailto : [EMAIL PROTECTED] -----Original Message----- From: Vivek Singh [mailto:[EMAIL PROTECTED]] Sent: Wednesday, August 16, 2000 3: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".
Re: Life cycle of beans(Session and entity)
Murthy, A (CAP, GEFA, Contractor) Wed, 16 Aug 2000 14:39:25 -0700
- Re: Life cycle of beans(Session and ent... Vivek Singh
- Re: Life cycle of beans(Session an... Rajesh Balu
- Re: Life cycle of beans(Session and ent... Vivek Singh
- Re: Security in EJB Atul Ghanekar
- Re: Security in EJB Rajan Kashyap
- Re: Life cycle of beans(Session and ent... Vivek Singh
- Re: Life cycle of beans(Session an... Dave Wolf
- Re: Life cycle of beans(Session and ent... Murthy, A (CAP, GEFA, Contractor)
- Re: Life cycle of beans(Session an... Rajesh Balu
- Re: Life cycle of beans(Session an... Sonia
- Re: Life cycle of beans(Session and ent... Murthy, A (CAP, GEFA, Contractor)
- Re: Life cycle of beans(Session an... Dave Wolf
- Re: Life cycle of beans(Session an... Cedric Beust
- Re: Life cycle of beans(Session and ent... Ashwani Kalra
- Re: Life cycle of beans(Session and ent... Vivek Singh
- Re: Life cycle of beans(Session an... Saurabh Sahai
- Re: Life cycle of beans(Session and ent... Murthy, A (CAP, GEFA, Contractor)
- Re: Life cycle of beans(Session an... Dave Wolf
- Re: Life cycle of beans(Session an... Dave Wolf
- Re: Life cycle of beans(Session and ent... Murthy, A (CAP, GEFA, Contractor)
- Re: Life cycle of beans(Session and ent... Subramaniam S
