• Post Reply Bookmark Topic Watch Topic
  • New Topic

How to force passivation on stateful bean?  RSS feed

 
Ivan Pyshko
Greenhorn
Posts: 10
IntelliJ IDE Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello.
Could you please explain me how to force passivation using annotations or using ejb-jar.xml. I know there is a way to use glassfish-ejb-jar.xml if I'm using a Glassfish container.
@StatefulTimeout force container to make bean ilegible for removal. Is there is any similar annotation to make bean ilegibal for passivation?
 
Frits Walraven
Creator of Enthuware JWS+ V6
Saloon Keeper
Posts: 3015
236
Android Chrome Eclipse IDE
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
No, there is no way to force passivation (by the EJB-specs). It is up to the EJB-container developers to decide under what condition passivation occurs.
 
Ivan Pyshko
Greenhorn
Posts: 10
IntelliJ IDE Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks.
@StatefulTimeout annotation makes me fill like there is something for passivation as well -)
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!