Theoretically, a stateful session bean would be unique
to a particular client. If a user hits your site, a
HTTPSession will get created, your web-tier code might
lookup/create a session bean (it could store the handle to
the bean in the HTTP Session for use on subsequent calls).
Once you get inside of your EJB tier, the session bean would
be unique to the user.

This of course has some scalability issues, since each user
has a session bean associated with them.

Dave

-----Original Message-----
From: Michael Remijan [mailto:[EMAIL PROTECTED]]
Sent: Monday, January 07, 2002 10:11 AM
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