• 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 all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Bear Bibeault
  • Junilu Lacar
Sheriffs:
  • Jeanne Boyarsky
  • Tim Cooke
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • salvin francis
  • Frits Walraven
Bartenders:
  • Scott Selikoff
  • Piet Souris
  • Carey Brown

ejbPassivate question?

 
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?
 
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.
 
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..
 
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
 
Don't get me started about those stupid light bulbs.
    Bookmark Topic Watch Topic
  • New Topic