Hello!
I'm using WebLogic server and have a Stateful Bean running. In the WebLogic Console, each instance of the Stateful Beans is assigned a unique ID which has the format: 999999_9
Does anyone know how to retrieve this unique ID?
Thanks,
/Eje
-
Stateful Bean ID (3 messages)
- Posted by: Eje Thorarinsson
- Posted on: January 03 2001 04:08 EST
Threaded Messages (3)
- Stateful Bean ID by Saruman White on January 03 2001 13:01 EST
- Stateful Bean ID by Eje Thorarinsson on January 04 2001 03:15 EST
- Stateful Bean ID by Saruman White on January 03 2001 13:02 EST
-
Stateful Bean ID[ Go to top ]
- Posted by: Saruman White
- Posted on: January 03 2001 13:01 EST
- in response to Eje Thorarinsson
Sorry for asking instead of answering - why would you need it? -
Stateful Bean ID[ Go to top ]
- Posted by: Eje Thorarinsson
- Posted on: January 04 2001 03:15 EST
- in response to Saruman White
Hi and thanks for your question and answer :)
I need it because I'm using a Stateful Bean as a Session Manager, where each Bean stores attributes for a client. I store the "Session ID" in a central repository, because even other applications need to access the session. I need to be sure that the Session Id created is a uniqe one, and was therefore interested in the WLS Console ID mechanism which is sure to give each EJB a uniqe key.
I'm not sure if this is the right way to do it, but we cannot use Servlet Session ID's because some of the clients are WAP terminals.
/Eje -
Stateful Bean ID[ Go to top ]
- Posted by: Saruman White
- Posted on: January 03 2001 13:02 EST
- in response to Eje Thorarinsson
It is System.identityHashCode(this) - if you are inside the XXXBean.java