• 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:
  • Liutauras Vilda
  • Campbell Ritchie
  • Tim Cooke
  • Bear Bibeault
  • Devaka Cooray
Sheriffs:
  • Jeanne Boyarsky
  • Knute Snortum
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Ganesh Patekar
  • Stephan van Hulst
  • Pete Letkeman
  • Carey Brown
Bartenders:
  • Tim Holloway
  • Ron McLeod
  • Vijitha Kumara

Stateful session bean persistence  RSS feed

 
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.
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!