Win a copy of Five Lines of Code this week in the OO, Patterns, UML and Refactoring 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
  • Bear Bibeault
  • Ron McLeod
  • Jeanne Boyarsky
  • Paul Clapham
Sheriffs:
  • Tim Cooke
  • Liutauras Vilda
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • fred rosenberger
  • salvin francis
Bartenders:
  • Piet Souris
  • Frits Walraven
  • Carey Brown

Stateless session bean

 
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:
 
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..
 
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 ]
 
I like tacos! And this tiny ad:
Thread Boost feature
https://coderanch.com/t/674455/Thread-Boost-feature
    Bookmark Topic Watch Topic
  • New Topic