Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

CallBack  RSS feed

 
Prashanth Bhanu
Ranch Hand
Posts: 110
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi Friends,
As we all know we have a ejbCreate(),ejbRemove()..so on methods in a bean,
But i'm unable to understand why they are called as "callback" methods???.
yes these methods will be invoked by the container to obtain the services for the bean.But still why these methods are called as callback.
Plz help me to understand it as u all have understood
thanx in advance
prashu
 
David Harkness
Ranch Hand
Posts: 1646
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by prashu bk:
But i'm unable to understand why they are called as "callback" methods?

Are you asking for the definition of a callback method? The name "callback" comes from how they are used: "Call me when X happens." When the container activates a bean instance, it calls its ejbActivate method so the bean can do something in response to the event.

Or are you asking for the reason why callback methods were used in EJBs? "Right tool for the job."
 
Rajeev Asthana
Ranch Hand
Posts: 43
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by prashu bk:
hi Friends,
As we all know we have a ejbCreate(),ejbRemove()..so on methods in a bean,
But i'm unable to understand why they are called as "callback" methods???.
yes these methods will be invoked by the container to obtain the services for the bean.But still why these methods are called as callback.
Plz help me to understand it as u all have understood
thanx in advance
prashu


Container calls these methods during the lifecycle events of a bean. That's why they are callbacks.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!