Win a copy of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js this week in the JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

LifeCycle problem  RSS feed

 
Prakash Dwivedi
Ranch Hand
Posts: 452
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello Friends,
A simple problem in lifecycle of ejb(session/entity) .
My doubt is which is invoked first by the container, when a client sents a request
1. ejbCreate() method of the bean
or
2. Instatitation of ejbObject
this question was asked in an interview

thanks
 
Piyush Daiya
Ranch Hand
Posts: 67
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
EJBObject is 1st created and then depending whether Bean instance is available or not ejbCreate() is called.Client can never access the bean directly, it makes calls on EjbOject.
Refer to Mastering EJB by Ed Roman for further details.
HTH,
Piyush
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!