aspose file tools*
The moose likes EJB and other Java EE Technologies and the fly likes Client and SFSB Session maintainence Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Java » EJB and other Java EE Technologies
Bookmark "Client and SFSB Session maintainence" Watch "Client and SFSB Session maintainence" New topic
Author

Client and SFSB Session maintainence

Hari babu
Ranch Hand

Joined: Jun 25, 2001
Posts: 208
Hi,
How do we maintain the session state between the client and the SFSB.
When we use HTTPSession we use session.setAttribute("session1",object) and Session.getAttribute("session1") to set and get the session. How does the SFSB knows that the same client is requesting and gets the session information maintained for that particular client.
I thought we can store the EjbObject got from EJBHome to session and reuse whenever the client app has to make a request to the EJBserver.
Can anyone help me on this ?
Chris Mathews
Ranch Hand

Joined: Jul 18, 2001
Posts: 2712
You can store the EJB's Handle in the Session and retrieve the EJBObject later using the Handle.
Hari babu
Ranch Hand

Joined: Jun 25, 2001
Posts: 208
Hi,
Just for clarification, we need to call getHandle() on ejbObject and store that "Handle" object or use the "HomeHandle" and put the same in session ?
Hari
[ October 04, 2002: Message edited by: Hari babu ]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Client and SFSB Session maintainence