0 Replies Latest reply on Oct 22, 2012 4:51 AM by Saravanan Muthusamy

    Programatic way of JMS Topic/Queue creation does not work on JBoss AS7.1.0.Final

    Saravanan Muthusamy Newbie

      I am trying to create a topic/queue in a programatic way, but no luck. looks like a JBoss/Hornet Q issue, can any one help me?.

       

       

        ObjectName objectName =new ObjectName("jboss.as:hornetq-server=default,subsystem=messaging");
        Object[] params = { "test", new Object[]{"java:/topic/test"}};
        String[] types = { String.class.getName(), Object[].class.getName() };
      
        ManagementFactory.getPlatformMBeanServer().invoke(objectName, "addJmsTopic", params, types);
      

       

      i see the deployer thread is always in waiting state. Is there any known issues when using HornetQ 2.2.11 on JBoss AS7?.

       

       

      "MSC service thread 1-6" prio=10 tid=0x00007f395002a000 nid=0x53fe waiting on condition [0x00007f39905a8000]

         java.lang.Thread.State: WAITING (parking)

              at sun.misc.Unsafe.park(Native Method)

              - parking to wait for  <0x00000000c0cd3e60> (a java.util.concurrent.locks.ReentrantLock$NonfairSync)

              at java.util.concurrent.locks.LockSupport.park(LockSupport.java:186)

              at java.util.concurrent.locks.AbstractQueuedSynchronizer.parkAndCheckInterrupt(AbstractQueuedSynchronizer.java:834)

              at java.util.concurrent.locks.AbstractQueuedSynchronizer.doAcquireInterruptibly(AbstractQueuedSynchronizer.java:894)

              at java.util.concurrent.locks.AbstractQueuedSynchronizer.acquireInterruptibly(AbstractQueuedSynchronizer.java:1221)

              at java.util.concurrent.locks.ReentrantLock.lockInterruptibly(ReentrantLock.java:340)

              at org.jboss.as.controller.ModelControllerImpl.acquireLock(ModelControllerImpl.java:402)

              at org.jboss.as.controller.OperationContextImpl.takeWriteLock(OperationContextImpl.java:340)

              at org.jboss.as.controller.OperationContextImpl.addResource(OperationContextImpl.java:501)

              at org.jboss.as.controller.OperationContextImpl.createResource(OperationContextImpl.java:482)

              at org.jboss.as.controller.AbstractAddStepHandler.execute(AbstractAddStepHandler.java:41)

              at org.jboss.as.controller.AbstractOperationContext.executeStep(AbstractOperationContext.java:387)

              at org.jboss.as.controller.AbstractOperationContext.doCompleteStep(AbstractOperationContext.java:274)

              at org.jboss.as.controller.AbstractOperationContext.completeStep(AbstractOperationContext.java:202)

              at org.jboss.as.controller.ModelControllerImpl$DefaultPrepareStepHandler.execute(ModelControllerImpl.java:461)

              at org.jboss.as.controller.AbstractOperationContext.executeStep(AbstractOperationContext.java:387)

              at org.jboss.as.controller.AbstractOperationContext.doCompleteStep(AbstractOperationContext.java:274)

              at org.jboss.as.controller.AbstractOperationContext.completeStep(AbstractOperationContext.java:202)

              at org.jboss.as.controller.ModelControllerImpl.execute(ModelControllerImpl.java:121)

              at org.jboss.as.jmx.model.ModelControllerMBeanHelper.execute(ModelControllerMBeanHelper.java:390)

              at org.jboss.as.jmx.model.ModelControllerMBeanHelper.invoke(ModelControllerMBeanHelper.java:368)

              at org.jboss.as.jmx.model.ModelControllerMBeanHelper.invoke(ModelControllerMBeanHelper.java:340)

              at org.jboss.as.jmx.model.ModelControllerMBeanServerPlugin.invoke(ModelControllerMBeanServerPlugin.java:108)

              at org.jboss.as.jmx.PluggableMBeanServerImpl.invoke(PluggableMBeanServerImpl.java:243)

              at com.mycompany.myproduct.DestinationFactory.createTopic(DestinationFactory.java:77)