• 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
  • Ron McLeod
  • paul wheaton
  • Jeanne Boyarsky
Sheriffs:
  • Paul Clapham
  • Devaka Cooray
Saloon Keepers:
  • Tim Holloway
  • Roland Mueller
  • Himai Minh
Bartenders:

CallBack

 
Ranch Hand
Posts: 110
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Ranch Hand
Posts: 1646
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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."
 
Ranch Hand
Posts: 43
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
reply
    Bookmark Topic Watch Topic
  • New Topic