2 Replies Latest reply on Dec 11, 2004 12:40 AM by Elias Ross

    how to config rollinglogged persistence?

    davidchen Newbie

      Hi, there:

      I'm using jboss 3.2.6, I met problem to config rollinglogged persistence manager: I copied "file-pm-service.xml", "file-state-service.xml" from example directory to my deploy/jms directory. removed those hsql**.xml, modified login-config.xml, and modified file-pm-service.xml as:

      <mbean code="org.jboss.mq.pm.rollinglogged.PersistenceManager"
       name="jboss.mq:service=PersistenceManager">
       <attribute name="DataDirectory">data/jbossmq/rollinglogged</attribute>
       <attribute name="RollOverSize">20</attribute>
       </mbean>
      

      However, when I start jboss, it gives me following error like:

      2004-12-09 12:13:14,900 ERROR [org.jboss.mq.pm.rollinglogged.PersistenceManager] Starting failed jboss.mq:service=PersistenceManager
      javax.management.InstanceNotFoundException: null object name
      at org.jboss.mx.server.registry.BasicMBeanRegistry.get(BasicMBeanRegistry.java:449)
      at org.jboss.mx.server.MBeanServerImpl.getAttribute(MBeanServerImpl.java:433)
      at org.jboss.mq.pm.rollinglogged.PersistenceManager.startService(PersistenceManager.java:223)
      at org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanSupport.java:271)
      at org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMBeanSupport.java:221)
      at sun.reflect.GeneratedMethodAccessor15.invoke(Unknown Source)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      at java.lang.reflect.Method.invoke(Method.java:324)
      at org.jboss.mx.server.ReflectedDispatcher.dispatch(ReflectedDispatcher.java:60)
      at org.jboss.mx.server.Invocation.dispatch(Invocation.java:62)
      at org.jboss.mx.server.Invocation.dispatch(Invocation.java:54)
      at org.jboss.mx.server.Invocation.invoke(Invocation.java:82)
      at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:197)
      at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:473)
      at org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:884)
      at $Proxy18.start(Unknown Source)
      at org.jboss.system.ServiceController.start(ServiceController.java:414)
      at sun.reflect.GeneratedMethodAccessor5.invoke(Unknown Source)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      at java.lang.reflect.Method.invoke(Method.java:324)
      at org.jboss.mx.server.ReflectedDispatcher.dispatch(ReflectedDispatcher.java:60)
      at org.jboss.mx.server.Invocation.dispatch(Invocation.java:62)
      at org.jboss.mx.server.Invocation.dispatch(Invocation.java:54)
      at org.jboss.mx.server.Invocation.invoke(Invocation.java:82)
      at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:197)
      at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:473)
      at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:176)
      at $Proxy4.start(Unknown Source)

      If I use file persistence, everything seems ok, so, highly appreciated if any clue on how to config that rollinglogged persistence.

      Thanks a lot

      David

        • 1. Re: how to config rollinglogged persistence?
          davidchen Newbie

          It seems that I forgot to include "MessageCache" attribute in above file-pm-service.xml, just add:

           <depends optional-attribute-name="MessageCache">jboss.mq:service=MessageCache</depends>
          


          And, which is not mentioned at all in jboss 3.2.x document ($100+ for that unclear document). The document said:

          org.jboss.mq.pm.rollinglogged.PersistenceManager
          The org.jboss.mq.pm.rollinglogged.PersistenceManager should be used as the PersistenceManager
          assigned to the DestinationManager if you wish to use the Rolling Logged PM.
          The configurable attributes are as follows:
          ? DataDirectory: The directory used to store persistent messages.
          ? RollOverSize: The maximum number of messages until log rolls over.

          • 2. Re: how to config rollinglogged persistence?
            Elias Ross Master


            RollingLogged is not recommended. Trust me, it has lots of issues. Use JDBC persistence with HSQLDB (17.2) or another DB.