• 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 all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Paul Clapham
  • Ron McLeod
  • Bear Bibeault
  • Liutauras Vilda
Sheriffs:
  • Jeanne Boyarsky
  • Tim Cooke
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Tim Holloway
  • Stephan van Hulst
  • Jj Roberts
  • Carey Brown
Bartenders:
  • salvin francis
  • Frits Walraven
  • Piet Souris

Stateful session bean persistence

 
Ranch Hand
Posts: 247
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
I ask me the following question: a stateful session bean keeps conversational state between the same client method invocations.
But what if I loose the session, for example by closing the window: is there a way for the client to retrieve this stateful bean?
Or for the session bean to retrieve a specified client? I know that with the help of SessionContext interface, we can get some information about client security, but that's not enough: we may know that this client belongs to this specified logic role, but we don't get reference to the client...
For me, it's not possible but i'm perhaps wrong...
I would be very grateful for any assitance!
Regards,
Cyril.
 
Ranch Hand
Posts: 1066
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
How about serializing the handle of the remote interface and re-using it later from the client side?
 
cyril vidal
Ranch Hand
Posts: 247
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
HI Vish,
Thanks for the answer.
Indeed, I forgot this method getHandle() from EJBObject.
It seems to be what I need.
Thanks,
Regards,
Cyril.
 
So I left, I came home, and I ate some pie. And then I read this tiny ad:
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop
https://coderanch.com/wiki/718759/books/Building-World-Backyard-Paul-Wheaton
reply
    Bookmark Topic Watch Topic
  • New Topic