• Post Reply Bookmark Topic Watch Topic
  • New Topic

What are the call back methods in EJB  RSS feed

 
Mathews P Srampikal
Ranch Hand
Posts: 211
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What are the call back methods in EJB like ejbLoad,ejbStore,ejbActivate and ejbPassivate()...any more??? and which are they.
 
Lasse Koskela
author
Sheriff
Posts: 11962
5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If you're talking about the lifecycle methods the container is invoking on your EJB object, they are:
ejbLoad()
ejbStore()
ejbActivate()
ejbPassivate()
ejbCreateXXX()
ejbPostCreateXXX()
ejbRemove()
setXXXContext()
onMessage()
 
Mathews P Srampikal
Ranch Hand
Posts: 211
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
No....i am asking Call Back methods not life cycle methods......any way ejbCreate is not a callback method
 
Lasse Koskela
author
Sheriff
Posts: 11962
5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Mathews P Srampikal:
No....i am asking Call Back methods not life cycle methods......any way ejbCreate is not a callback method
So you're not talking about call backs made by the container but the bean? In that case, I can only think of whatever the EntityContext/SessionContext/MessageDrivenContext interfaces provide.
 
Mathews P Srampikal
Ranch Hand
Posts: 211
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Lasse......i am asking callback method.....i know ejbLoad and ejbStore,activate and passivate......means we are not calling these methods explicitly.it will be automatically called by container and container only....like what are the other methods.
 
Lasse Koskela
author
Sheriff
Posts: 11962
5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I don't think there are "other" callback methods. The only callback methods mentioned in the specification are those defined in the javax.ejb.* interface classes (ejbLoad, ejbStore etc.).
 
Howard Kushner
author
Ranch Hand
Posts: 361
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello Matthews,
Apparently your definition of "call back methods" differs from the one with which I am familiar. Please help clarify your question, so that we might be able to shed some light here. I must confess that i tend to agree with Lasse...
Regards,
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!