File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes EJB and other Java EE Technologies and the fly likes Preventing Passivation of statefull bean Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Head First Android this week in the Android forum!
JavaRanch » Java Forums » Java » EJB and other Java EE Technologies
Bookmark "Preventing Passivation of statefull bean " Watch "Preventing Passivation of statefull bean " New topic

Preventing Passivation of statefull bean

Bhavik patel
Ranch Hand

Joined: Feb 20, 2007
Posts: 49
Hello to all of you,
My question is, How to prevent passivation of statefull bean?
I am using JBOSS as EJB container.
Thanks in advance.

Bhavik Patel
Glassfish Consultancy service At
Scott Selikoff
Saloon Keeper

Joined: Oct 23, 2005
Posts: 3740

There are some ways to configure the criteria the server will use to perform passivation (such as the idle timeout value). Sorry, I don't remember how to do that in JBoss. Going off on a tangent, any chance you could use stateless session beans? Stateful ones are not that common these days due to numerous performance and maintenance issues.

[OCA 8 Book] [Blog]
It is sorta covered in the JavaRanch Style Guide.
subject: Preventing Passivation of statefull bean
jQuery in Action, 3rd edition