• 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 Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • Devaka Cooray
  • Ron McLeod
  • Jeanne Boyarsky
Sheriffs:
  • Liutauras Vilda
  • paul wheaton
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Piet Souris
  • Carey Brown
  • Tim Holloway
Bartenders:
  • Martijn Verburg
  • Frits Walraven
  • Himai Minh

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 don't like that guy. The tiny ad agrees with me.
the value of filler advertising in 2021
https://coderanch.com/t/730886/filler-advertising
reply
    Bookmark Topic Watch Topic
  • New Topic