-----Original Message-----
From: Sathyanarayana V [mailto:[EMAIL PROTECTED]]
Sent: Thursday, March 14, 2002 1:57 PM
To: 'Parikshit Pol'
Subject: RE: Stateful Session Bean Question !!!


Hello sir,
That spec means
If at all if instance is having references to any other ejb and instance
gets pasivated , while getting activated it should restore home and remote
reference of that ohther ejb.

-satya

-----Original Message-----
From: Parikshit Pol [mailto:[EMAIL PROTECTED]]
Sent: Thursday, March 14, 2002 12:23 PM
To: [EMAIL PROTECTED]
Subject: Re: Stateful Session Bean Question !!!


In the EJB 2.0 specification, under "7.4.1 Instance Passivation and
Conversational State" it is specified as -

########
"The container must be able to properly save and restore the reference to
the home and component inter-faces
of the enterprise beans stored in the instance's state even if the classes
that implement the object
references are not serializable."
########

Does this mean that Home and remote interfaces are passivated only if they
are instance field values of the bean?

Thanks,
Parikshit

-----Original Message-----
From: A mailing list for Enterprise JavaBeans development
[mailto:[EMAIL PROTECTED]]On Behalf Of Hemant Arora
Sent: Thursday, March 14, 2002 11:08 AM
To: [EMAIL PROTECTED]
Subject: Stateful Session Bean Question !!!


Hi All

Can someone please clarufy on this.

When a stateful session bean is passivated the sun specs and most of the
books say
that the bean instance is evicted from the memory and all the non transient
fields are written
to a persistant storage ( mostly disk ).

When the client invokes a method again on that stateful bean then the bean
is activated and the
method invocation proceeeds

Now as per my understanding when the bean instance is evicted from the
memory ,
The Ejb Object that the container has generated for the remote interface
for that bean class
still remains ( isn't it ) and that is still referenced to the client ,
that's why when the client invokes
the method again the bean is loaded

I mean to say that during the passivation the bean instance is evicted from
the memory but not the
ejbobject

Am I correct ???

Is my understading correct ???


Please clarify

Thanks a lots

Hemant

-----------------------Disclaimer------------------------

The views of the author may not necessarily reflect those
of the Company. All liability is excluded to the extent
permitted by law for any claims arising as a result of the
use of this medium to transmit information by or to
IT Solutions (India) Pvt. Ltd.

We have taken precautions to minimize the risk of
transmitting software viruses, but we advise you to
carry out your own virus checks on any attachment to
this message.  We cannot accept liability for any loss or
damage caused by software viruses.

------------------------Disclaimer------------------------

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