If you just need a "cookie" to programmatically persist your SFSB data, you
could serialize the SFSB handle. However, the handle will be different for
each SFSB reference used by the same client session. I can't see any
portable way of synchronizing / associating data for the same client session
within different SFSB instances without passing a "cookie" as a parameter
(i.e. as part of the signature of a create method). Could you give some more
details about what you want to achieve?

/Johan

-----Original Message-----
From: A mailing list for Enterprise JavaBeans development
[mailto:[EMAIL PROTECTED]]On Behalf Of Michael Remijan
Sent: den 7 januari 2002 16:11
To: [EMAIL PROTECTED]
Subject: howto uniquely identify a client in a bean?

Hi,

I also have what seems to be a very simple question
but have been pouring over the J2EE API for a few days
and can't find a solution.

Once Inside a bean I can use the SessionContext and
EntityContext objects  as a link to the container and
the (some) user information.  What I want to get is
the unique identification that the application server
has assigned to that user, especially in the case of
stateful session beans.  the "getCallerPrinciple()"
method isn't helpful because then each client must
have a seperate login and that's just not possible.
Bottomline, I want the equivalent of the session id
you can get from the an HttpServletRequest, or
something equivalent.

Any idea?
Thanks in advance,
Mike

__________________________________________________
Do You Yahoo!?
Send FREE video emails in Yahoo! Mail!
http://promo.yahoo.com/videomail/

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