• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

ejb passivate

 
Abbu Rahman
Ranch Hand
Posts: 46
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
i just deployed AdviceBean.,
when will i get to see "ejb passivate" message ?
and how can i make passivation faster in j2ee server?
Thanks
Rafay
 
Dale Seng
Ranch Hand
Posts: 275
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Like, maybe never! The container won't call it because it's been deployed as a stateless session bean. Remember, we implement session bean (not stateless session bean, or stateful session bean), so we must implement all methods, whether they are going to be called or not. Maybe you can deploy as a stateful bean and see what happens. Let us know.
--Dale--
 
Roger Chung-Wee
Ranch Hand
Posts: 1683
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Even if AdviceBean were stateful, it's up to the Container (by using its caching algorithm) to decide when to passivate. So, the bean provider does not have to do anything.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic