How do i configure ActiveMQ queues through CLI ?

Solution Verified - Updated -

Issue

  • Why configuring activemq in JBoss 6.1.1 through CLI causes error.
  • How do i configure ActiveMQ queues through CLI ? Secondly, How do i add a new queue. Take the following as an example.
        <admin-objects>
            <admin-object class-name="org.apache.activemq.command.ActiveMQQueue" jndi-name="java:/queue/MyTestQJBOSS" use-java-context="true" pool-name="MyTestPool">
                <config-property name="PhysicalName">
                    MyTestQ
                </config-property>
            </admin-object>
        </admin-objects>
  • We tried to run the CLI as following but ran into an error:
/profile=full/subsystem=resource-adapters/resource-adapter=activemq-ra.rar/admin-objects/admin-object:add(class-name=\"org.apache.activemq.command.ActiveMQQueue\",jndi-name=\"java:jboss/queue/MyTestQJBOSS",use-java-context=true,pool-name="MyTestPool"

/profile=full/subsystem=resource-adapters/resource-adapter=activemq-ra.rar/admin-objects/admin-object/config-properties=PhysicalName:add(value="MyTestQ")"
  • The generated error is as following:
Node path format is wrong around 'admin-objects' (index=88).

Environment

  • Red Hat JBoss Enterprise Application Platform (EAP)
    • 6.1.x
    • 6.2.x
    • 6.3.x

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In
Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.