1 Reply Latest reply on Apr 3, 2003 1:34 PM by adrian.brock

    How can I use PersistPolicy

    arabinow

      I am using JBoss 3.0.6

      What classes do support PersistyPolicy?
      Is it correct, that for ModelBase and for XMBean classes persistPolicy "OnUpdate" is already implemented and I do not need to implement it on my own?

      Is it correct that for ModelMBean it is not implemented and I need to implement it on my own?

        • 1. Re: How can I use PersistPolicy

          ModelBase by default uses the
          NullPersistence Manager (no persistence)

          You can plugin your own persistence
          by implementing
          org.jboss.mx.persistence.PersistenceManager
          and instantiating it in your MBean
          persistence = new MyPersistenceManager();

          I believe there is an implementation in
          jboss4 - I don't know much about it, sorry

          Regards,
          Adrian