• 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
  • Liutauras Vilda
  • Tim Cooke
  • Jeanne Boyarsky
  • Paul Clapham
Sheriffs:
  • Devaka Cooray
  • Ron McLeod
  • paul wheaton
Saloon Keepers:
  • Tim Moores
  • Piet Souris
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
Bartenders:
  • Al Hobbs
  • Frits Walraven
  • Scott Selikoff

when is a bean considered created.

 
Ranch Hand
Posts: 80
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
At what point, precisely, in the life-cycle is a stateful session bean considered created?
before ejbcreate method and after setsessioncontext method, since identity is available in the ejbcreate method.
At what point, precisely, in the life-cycle is a stateless session bean considered created?
after the ejbcreate method since the bean gains identity at this point.

Please correct me if Iam wrong.
 
Ranch Hand
Posts: 87
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Walter,
I would say "created" is when when the bean is promoted to the ready state. In that case, the container calls newInstance, setSessionContext and then ejbCreate in both cases. After ejbCreate completes, the bean is promoted to the ready state.
Back to what you stated, my understanding is the reverse. The Stateless bean has no identity (are equivalent) and the stateful bean gains identity after ejbCreate (user state).
Scott
 
Walter Vetrivel
Ranch Hand
Posts: 80
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I meant security context identity.
Anyway I think u are right.
 
A teeny tiny vulgar attempt to get you to buy our stuff
the value of filler advertising in 2021
https://coderanch.com/t/730886/filler-advertising
reply
    Bookmark Topic Watch Topic
  • New Topic