How about the hashCode() of the Bean Handle? The Handle Object is
supposed to provide the unique session identity. If the Object is
considered unique, the hashcode must also be unique. I have used
ejbHandle to connect to the same Session Object, but haven't tried
checking the hashcode.
Hope this helps.
--
Subra
http://www.thinktankpartners.com/
Viveka Software Technologies Pvt Ltd., Bangalore, India
--- Johann Hackl <[EMAIL PROTECTED]> wrote:
> Hi all,
>
> i need a unique ID which identifies a server - session for logging
> purposes.
>
> Following situation:
> A Client connects to the App-Server and then first creates a Stateful -
> Session - Bean, lets call us it "ClientController".
> Then he invokes some methods of the ClientController which do some
> actions
> on other EJB's.
>
> In log - messages, created by all those EJB's there should be some kind
> of
> ID equal for the whole session
> without having an additional parameter for each method.
>
> Has anyone of you an idea of how to do this?
>
> Thank's in advance,
>
> Hans
=====
--
Subra
http://www.geocities.com/subramaniams/
http://www.thinktankpartners.com/
mailto:[EMAIL PROTECTED]
mailto:[EMAIL PROTECTED]
__________________________________________________
Do You Yahoo!?
Get personalized email addresses from Yahoo! Mail - only $35
a year! http://personal.mail.yahoo.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".