This week's book giveaway is in the Cloud/Virtualization forum.
We're giving away four copies of Pipeline as Code and have Mohamed Labouardy on-line!
See this thread for details.
Win a copy of Pipeline as Code 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
  • Ron McLeod
  • Paul Clapham
  • Jeanne Boyarsky
  • Bear Bibeault
Sheriffs:
  • Rob Spoor
  • Henry Wong
  • Liutauras Vilda
Saloon Keepers:
  • Tim Moores
  • Carey Brown
  • Stephan van Hulst
  • Tim Holloway
  • Piet Souris
Bartenders:
  • Frits Walraven
  • Himai Minh
  • Jj Roberts

Stateless Session Bean!! Things v can do.

 
Ranch Hand
Posts: 44
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi Guyz,

According to HFEJB, Pg.No 227, "Session bean creation is not related to the client".
That means container has already made some stateless beans and put them in the pool, or the container may create those bean instances at the time when the client call the business methods. Bottom line is that it is upto to the container to make stateless bean instances and that happens at a completely different/unrelated time to when the client calls the create.

When client calls create only stub to EJB Object is returned.

Now my question is: How come you get a reference to the EJB Object in ejbCreate(), because it may b the case that the EJB Object isnt created boz the client hasnt called create() yet.

Thankz in advance!!

Puneet
SCJP1.4
 
Ranch Hand
Posts: 89
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi

Follow this link, (discussed for stateful session bean, but i think it is applicable for stateless bean also)

https://coderanch.com/t/161414/java-EJB-SCBCD/certification/setSessionContext-things-you-do

Hope it helps.

Micheal
 
Ranch Hand
Posts: 372
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
This should help :

Bean Things are confusing
 
I brought this back from the farm where they grow the tiny ads:
SKIP - a book about connecting industrious people with elderly land owners
https://coderanch.com/t/skip-book
reply
    Bookmark Topic Watch Topic
  • New Topic