Hi all!
I drove into a wall with this one:
I have a Stateful Session Bean that is to work as a Session Manager for a product in WebLogic. The product can have multiple JVMs running other Java Programs outside of the WebLogic environment.
Every user has a unique session id, and I would like to use this id to reference the bean object. I have stored the EJB Handles in a HasMap, using the session-id as a reference, but this does not work when the client uses a different JVM, of course.
Is there another way to access a Bean using a Handle, and also possible through multiple JVM's?
Thanks,
/Eje
-
Getting Objects from Handles..... (2 messages)
- Posted by: Eje Thorarinsson
- Posted on: December 07 2000 06:20 EST
Threaded Messages (2)
- Getting Objects from Handles..... by Deepak Singh on December 07 2000 16:27 EST
- Getting Objects from Handles..... by Eje Thorarinsson on December 08 2000 06:52 EST
-
Getting Objects from Handles.....[ Go to top ]
- Posted by: Deepak Singh
- Posted on: December 07 2000 16:27 EST
- in response to Eje Thorarinsson
Can we use JNDI or some directory service where you can store the ID of the bean as well as the Machine name/IP where you have that bean running -
Getting Objects from Handles.....[ Go to top ]
- Posted by: Eje Thorarinsson
- Posted on: December 08 2000 06:52 EST
- in response to Deepak Singh
Thanks for the reply! :)
I solved the problem, by creating a stateless bean that accesses the HashMap Singleton in the WebLogic JVM environment. A bit of recoding, but it's worthwhile!
/Eje