wood burning stoves 2.0*
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 Android Security Essentials Live Lessons this week in the Android 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 ]
 
Consider Paul's rocket mass heater.
 
subject: Client and SFSB Session maintainence
 
Similar Threads
stateful session bean - please answer
Session object within two servlets and jsp in the single application
Stateful Session Bean
Stateful Session Bean as VLH for flight search
Use of Stateful Session Bean for Shopping Cart