• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Client and SFSB Session maintainence

 
Ranch Hand
Posts: 208
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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 ?
 
Ranch Hand
Posts: 2713
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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 ]
 
reply
    Bookmark Topic Watch Topic
  • New Topic