1 Reply Latest reply on Oct 29, 2003 10:54 AM by Paul Grassi

    disable passivation

    mikebaroukh Newbie

      Hi all.

      In a cluster, is there a way to disable passivation ?
      I understand that passivation is used for replication, but I don't need replication (I set isModified() to return false).

      Now, as my ejb is really modified, I want passivation to not be used.

      Thanks in adavance.

      Mike

        • 1. Re: disable passivation
          Paul Grassi Newbie

          You need to either modify the container configuration your bean(s) is using in standardjboss.xml, or extend a container configuration in the jboss.xml file deployed with the bean(s).

          The element you modify is as follows:

          <cache-policy>org.jboss.ejb.plugins.NoPassiva-tionCachePolicy</cache-policy>

          This will never passivate the bean.