This week's book giveaways are in the Refactoring and Agile forums.
We're giving away four copies each of Re-engineering Legacy Software and Docker in Action and have the authors on-line!
See this thread and this one for details.
Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Client and SFSB Session maintainence

 
Hari babu
Ranch Hand
Posts: 208
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 2712
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You can store the EJB's Handle in the Session and retrieve the EJBObject later using the Handle.
 
Hari babu
Ranch Hand
Posts: 208
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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 ]
 
Don't get me started about those stupid light bulbs.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic