• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

session bean question

 
Bob Walker Jr
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?
 
Pradeep bhatt
Ranch Hand
Posts: 8933
Firefox Browser Java Spring
  • 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.
 
Andrew Perepelytsya
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic