Hi,
If you are asking from the application server point of view then . There is
no such thing like cookies etc. The state is maintained by not pooling the
statefull bean instances. It remains bound to the client through out its
life cycle till it gets destroyed.Obvious the client has to have the
reference to this bean through remote reference which should be held in
session on the client
~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Warm Regards
Ashwani Kalra
Sr. Member Dev. Staff
Aithent Technologies(P) Ltd.
Email : [EMAIL PROTECTED]
[EMAIL PROTECTED]
Phone : 91- 6346338,6397836-37,6397533
6397324,6397277
Ext :307
~~~~~~~~~~~~~~~~~~~~~~~~~~~
-----Original Message-----
From: A mailing list for Enterprise JavaBeans development
[mailto:[EMAIL PROTECTED]]On Behalf Of Hariharan N
Sent: Tuesday, March 06, 2001 4:13 PM
To: [EMAIL PROTECTED]
Subject: Stateless and Statefull
Could anyone (with a sample application) demonstrate the exact difference
between Statefull and Stateless bean. Say for example in the sample
application(may be with one function) when
<session-type>Stateful</session-type> tag in the ejb-jar.xml is changed to
<session-type>Stateless</session-type> should show the persistence which
happens with statefull and not with stateless!!!
Also explain clearly with respect to the sample app. the underground
process. Like when this sample app is invoked as a statefull then it should
maintain state etc..
Also how does app server maintain client state??? thro' cookies or machine
IP etc...
Thanks!!
===========================================================================
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".