Win a copy of Java Mock Exams (software) this week in the Programmer Certification (OCPJP) forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

How to force passivation on stateful bean?

 
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: 2778
174
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 -)
 
What are you doing? You are supposed to be reading this tiny ad!
the new thread boost feature brings a LOT of attention to your favorite threads
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!