Win a copy of Mastering Corda: Blockchain for Java Developers this week in the Cloud/Virtualization forum!
  • 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

session bean question

 
Ranch Hand
Posts: 46
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If a client loses the reference of a handler to a stateful session bean. Can it get it back somehow?
 
Ranch Hand
Posts: 8943
Firefox Browser Spring Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You mean to say that Handle is lost.If the handle is lost you cannot recover the bean.
 
Ranch Hand
Posts: 93
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If you lost the reference to the object, it would be like Pradeep mentioned.
But there's another interesting way you can 'lose' the reference. When a SFSB timeout occurs. The client still has a valid handle (there's no way to invalidate this handle in a distributed fashion for the container). When an attempt is made to obtain the object from the handle, an exception will be thrown.
This is not applicable to SLSB, as they are not client-specific, and the container may create an extra instance for you just in case.
 
reply
    Bookmark Topic Watch Topic
  • New Topic