Does your web server automatically replicate session state across your
cluster/islands?

if not, you can always save a Handle to the session bean...

--from the api javax.ejb.Handle:

public interface Handle
extends java.io.Serializable

The Handle interface is implemented by all EJB object handles. A handle
 is an abstraction of a network reference to an EJB object. A handle is
 intended to be used as a "robust" persistent reference to an EJB object.


a Handle should suffice to 'inflate' any EJB that is passivated which will
be the case with
a session not used in a while... this could be stored in a session object
provided you can use it
to hold serializable object (or just large String's)

If you have to build your own Session object (something IIS/PHP programmers
are much used to),
I'm sure you can use a simple approach (but, when the tough get goin'.....
goin' get tough)


My 2c,

JP
-----Original Message-----
From: Harris Chris [mailto:[EMAIL PROTECTED]]
Sent: Lunes, 08 de Enero de 2001 17:58
To: [EMAIL PROTECTED]
Subject: where to hold the Session Bean's reference


Hi, All.

    I have a stateful session bean and i'm holding all client information in
the beans instance variable. If i use a load balancer to handle my web
request, how can i identify the same session bean across requests and where
can i store the bean's reference. I think holding the reference in the jsp
session doesn't work out here.

Please suggest me what are the other ways of doing this.

bye
diwan
_________________________________________________________________
Get your FREE download of MSN Explorer at http://explorer.msn.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".

Reply via email to