• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Stateless session bean

 
Srinivasan Rengan
Ranch Hand
Posts: 122
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi All,

I have a basic doubt in terms of stateless session bean. We know that the creation of stateless session bean isot tied to any client, meaning, it can happen anytime when the container desires. Also, when the client invokes the create method on the remote home's stub, only then an instance of remote EJBObject's instance is returned back to the client. Again. this does not have any binding to the creation of the bean or the session context.

Now, my question is, if these two scenarios mentioned above are isolated events, then how is it possible to get the reference of EJBObject's stub through the session context instance, inside the ejbCreate method, during the invocation of which we may not have a EJBObject at all.

Thanks in advance!
Srini :roll:
 
Charlie A
Greenhorn
Posts: 19
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Good Question.. I am breaking my head to find a answer for this..
 
Jeroen T Wenting
Ranch Hand
Posts: 1847
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Quite obviously such an instance is created by the container if needed when none exists at the time.
 
Srinivasan Rengan
Ranch Hand
Posts: 122
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks people...for your concern!

With regard to the issue, I don't think the spec asserts any clear solution.
It would be really helpful, if some one can throw some lights on this!

Srini
[ September 20, 2006: Message edited by: Srinivasan R ]
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic