• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

ejbPassivate question?

 
andy armstrong
Ranch Hand
Posts: 154
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The specs state you can call ejbPassivate any time in a transaction but you must call ejbStore
before ejbPassivate.
What happens if you don't call ejbStore prior to ejbPassivate?
Do you get a System Excemption, Remote Excpetion,
no exception or is this app server specific?
 
Alex Pisarev
Ranch Hand
Posts: 49
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Nothing will happen. ejbStore will not be called, you'll loose your data - that's all.
Alex.
 
Alex Zhang
Ranch Hand
Posts: 68
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi, I hope I have not made a mistake in the understanding of EJB or your question. To what I know is the ejbPassivate together with other ejb<xxx> methods, they are the callback methods for the Container when the state of the bean has changed. So we don't call them directly.
And it is all up to the vendors who implement the EJB Server for the method of handling the calling of the callback methods. :roll:
 
andy armstrong
Ranch Hand
Posts: 154
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Good point.. The container calls the call back methods..Not the bean..
Now my question can a business function call
a callback method..
 
Ram Kondawar
Ranch Hand
Posts: 42
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
It is not possible for client to invoke the callback method as these methods are not exposed to the client through the component interface.
Rgds
Ram
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic