5 Replies Latest reply on Apr 18, 2004 2:30 PM by kportner

    Default Settings JMSPriority, JMSExpiration and so on...

    kportner Newbie

      Hello All,

      I'm trying to figure out how to change the default JBoss settings for JMSExpiration, JMSPriority and JMSTimeStamp. My goal is to change these settings in the JBoss server and have it effect all client applications.

      Can anybody out there point me in the right direction or even better yet tell me what file to tweek so I can make my needed changes?

      Thanks in advance!

      Karl

        • 2. Re: Default Settings JMSPriority, JMSExpiration and so on...
          kportner Newbie

          Adrian,

          Thanks for your response, I've taken a look at your link and have implemented all of the changes per your instructions, but when I start up my JBoss server I get a ton of error messages during the initial start up and the server never connects. I have basically taken your code and copy pasted it and am trying to get it to work using the NonPersistent example you provided.

          Also, what should be the name of the JAR file I'm creating? I called it NonPersistentInterceptor.jar.

          Sorry but I'm new to this so please bare with me.

          Your help is greatly appreciated.

          Here's the first error message I get when starting JBoss:

          13:17:31,935 INFO [ServiceConfigurator] Problem configuring service jboss.mq:service=NonPersistent
          org.jboss.deployment.DeploymentException: Exception setting attribute javax.management.Attribute: name=InterceptorClass
          value=org.jboss.mq.server.NonPersistentInterceptor on mbean jboss.mq:service=NonPersistent; - nested throwable: (java.la
          ng.ClassNotFoundException: No ClassLoaders found for: org.jboss.mq.server.NonPersistentInterceptor)
          at org.jboss.system.ServiceConfigurator.setAttribute(ServiceConfigurator.java:501)
          at org.jboss.system.ServiceConfigurator.configure(ServiceConfigurator.java:328)
          at org.jboss.system.ServiceConfigurator.internalInstall(ServiceConfigurator.java:172)
          at org.jboss.system.ServiceConfigurator.install(ServiceConfigurator.java:114)
          at org.jboss.system.ServiceController.install(ServiceController.java:225)
          at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
          at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
          at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
          at java.lang.reflect.Method.invoke(Method.java:324)
          at org.jboss.mx.capability.ReflectedMBeanDispatcher.invoke(ReflectedMBeanDispatcher.java:284)
          at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:546)
          at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:177)
          at $Proxy4.install(Unknown Source)
          at org.jboss.deployment.SARDeployer.create(SARDeployer.java:183)
          at org.jboss.deployment.MainDeployer.create(MainDeployer.java:786)
          at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:641)
          at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:605)
          at sun.reflect.GeneratedMethodAccessor20.invoke(Unknown Source)
          at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
          at java.lang.reflect.Method.invoke(Method.java:324)
          at org.jboss.mx.capability.ReflectedMBeanDispatcher.invoke(ReflectedMBeanDispatcher.java:284)
          at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:546)
          at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:177)
          at $Proxy6.deploy(Unknown Source)
          at org.jboss.deployment.scanner.URLDeploymentScanner.deploy(URLDeploymentScanner.java:302)
          at org.jboss.deployment.scanner.URLDeploymentScanner.scan(URLDeploymentScanner.java:476)
          at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.doScan(AbstractDeploymentScanner.java:20
          1)
          at org.jboss.deployment.scanner.AbstractDeploymentScanner.startService(AbstractDeploymentScanner.java:274)
          at org.jboss.system.ServiceMBeanSupport.start(ServiceMBeanSupport.java:192)
          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.capability.ReflectedMBeanDispatcher.invoke(ReflectedMBeanDispatcher.java:284)
          at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:546)
          at org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:976)
          at $Proxy0.start(Unknown Source)
          at org.jboss.system.ServiceController.start(ServiceController.java:394)
          at sun.reflect.GeneratedMethodAccessor6.invoke(Unknown Source)
          at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
          at java.lang.reflect.Method.invoke(Method.java:324)
          at org.jboss.mx.capability.ReflectedMBeanDispatcher.invoke(ReflectedMBeanDispatcher.java:284)
          at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:546)
          at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:177)
          at $Proxy4.start(Unknown Source)
          at org.jboss.deployment.SARDeployer.start(SARDeployer.java:226)
          at org.jboss.deployment.MainDeployer.start(MainDeployer.java:832)
          at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:642)
          at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:605)
          at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:589)
          at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
          at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
          at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
          at java.lang.reflect.Method.invoke(Method.java:324)
          at org.jboss.mx.capability.ReflectedMBeanDispatcher.invoke(ReflectedMBeanDispatcher.java:284)
          at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:546)
          at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:177)
          at $Proxy5.deploy(Unknown Source)
          at org.jboss.system.server.ServerImpl.doStart(ServerImpl.java:384)
          at org.jboss.system.server.ServerImpl.start(ServerImpl.java:291)
          at org.jboss.Main.boot(Main.java:150)
          at org.jboss.Main$1.run(Main.java:395)
          at java.lang.Thread.run(Thread.java:534)
          Caused by: java.lang.ClassNotFoundException: No ClassLoaders found for: org.jboss.mq.server.NonPersistentInterceptor
          at org.jboss.mx.loading.LoadMgr3.beginLoadTask(LoadMgr3.java:241)
          at org.jboss.mx.loading.UnifiedClassLoader3.loadClassImpl(UnifiedClassLoader3.java:169)
          at org.jboss.mx.loading.UnifiedClassLoader3.loadClass(UnifiedClassLoader3.java:123)
          at java.lang.ClassLoader.loadClass(ClassLoader.java:235)
          at org.jboss.mq.server.jmx.InterceptorLoader.setInterceptorClass(InterceptorLoader.java:42)
          at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
          at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
          at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
          at java.lang.reflect.Method.invoke(Method.java:324)
          at org.jboss.mx.capability.ReflectedMBeanDispatcher.setAttribute(ReflectedMBeanDispatcher.java:186)
          at org.jboss.mx.server.MBeanServerImpl.setAttribute(MBeanServerImpl.java:500)
          at org.jboss.system.ServiceConfigurator.setAttribute(ServiceConfigurator.java:497)
          ... 61 more

          • 3. Re: Default Settings JMSPriority, JMSExpiration and so on...
            Adrian Brock Master

            The name of the jar is irrevelent. Call it fluffy-bunny-rabbits.jar if you like.

            Whatever you called it, you either put it in the wrong place
            (it should be in server/default/lib)
            or you didn't package it correctly (did you notice the class is in package org.jboss.mq.server)?
            so if you type:
            jar -tf fluffy-bunny-rabbits.jar

            you should see:

            org/jboss/mq/server/NonPersistentInterceptor.class

            NOT
            NonPersistentInterceptor.class

            • 4. Re: Default Settings JMSPriority, JMSExpiration and so on...
              Adrian Brock Master

              You also need to restart the server for it to reread server/default/lib

              • 5. Re: Default Settings JMSPriority, JMSExpiration and so on...
                kportner Newbie

                fluffy-bunny-rabbits.jar.... that's funny

                Ok, my problem has been resolved, the issue was that I didn't put the class file in the org/jboss/mq/server package. Once I did that your example works like a champ.

                I can't thank you enough!!

                Thanks

                Karl