1 Reply Latest reply on Jul 4, 2002 8:11 AM by Falk

    disabling Passivation of stateful Session Bean

    Oliver Kowalke Newbie


      I've running an stateful Session Bean (Session Facade). It contains an private member variable. This variable cannot be serialized (from third party). After some time (ca.15min) the server throws an Exception that the bean cannot be passivated (because private member isn't serializable).
      I would prefer to disable the passivation. How can i achive that?
      Is it possible to set an idle time after that the bean would be destroyed?
      I think this would go into the jboss.xml but I don't know the correct syntax.

      with best regards,

        • 1. Re: disabling Passivation of stateful Session Bean
          Falk Newbie

          It is possible to set a max-bean-age (time after that ejbPassivate() will be done) and a max-bean-life (time after that ejbRemove() will be done) Parameter.
          This can be done in jboss.xml, e.g.:


          File standardjboss.xml in directory conf shows Standardkonfigurations for this, which you can use with jboss.xml.

          Hope this may help you!