How to add a JMS destination in EAP 6

Solution Unverified - Updated -

Issue

From the instructions here:
http://docs.redhat.com/docs/en-US/JBoss_Enterprise_Application_Platform/6/html/Beta_Documentation/Configure_the_JMS_Server.html
It has the following:

1.

<socket-binding-groups>
  ...
  <socket-binding-group ... >
    <socket-binding name="messaging" port="5445"/>
    <socket-binding name="messaging-throughput" port="5455"/>
    ...
  </socket-binding-group>
  ...
</socket-binding-groups>

My config snippet:

    <subsystem xmlns="urn:jboss:domain:messaging:1.0">
            <journal-file-size>102400</journal-file-size>
            <journal-min-files>2</journal-min-files>
            <journal-type>NIO</journal-type>
            <!-- disable messaging persistence -->
            <persistence-enabled>false</persistence-enabled>
            <jms-connection-factories>
                <connection-factory name="myConnectionFactory">
                    <connectors>
                        <connector-ref connector-name="netty"/>
                    </connectors>
                    <entries>
                        <entry name="/ConnectionFactory"/>
                    </entries>
                </connection-factory>
            </jms-connection-factories>
            <connectors>
                <netty-connector name="netty" socket-binding="messaging"/>
                <netty-connector name="netty-throughput" socket-binding="messaging-throughput">
                    <param key="batch-delay" value="50"/>
                </netty-connector>
                <in-vm-connector name="in-vm" server-id="0"/>
            </connectors>
            <socket-binding-groups>
                <socket-binding-group>
                    <socket-binding name="messaging" port="5445"/>
                    <socket-binding name="messaging-throughput" port="5455"/>
                </socket-binding-group>
            </socket-binding-groups>
            <jms-destinations>
                <jms-queue name="MyQueue">
                    <entry name="/queue/MyQueue"/>
                </jms-queue>
            </jms-destinations>
            <topic name="MyTopic">
                <entry name="/topic/MyTopic"/>
            </topic>
        </subsystem>

I am receiving the following error on startup:

ERROR [org.jboss.as.server] JBAS015956: Caught exception during boot: org.jboss.as.controller.persistence.ConfigurationPersistenceException: JBAS01 4676: Failed to parse configuration
        at org.jboss.as.controller.persistence.XmlConfigurationPersister.load(XmlConfigurationPersister.java:141) [jboss-as-controller-7.1.1.Final-redhat-1.jar:7.1.1.Final-redhat-1]
        at org.jboss.as.server.ServerService.boot(ServerService.java:268) [jboss-as-server-7.1.1.Final-redhat-1.jar:7.1.1.Final-redhat-1]
        at org.jboss.as.controller.AbstractControllerService$1.run(AbstractControllerService.java:155) [jboss-as-controller-7.1.1.Final-redhat-1.jar:7.1.1.Final-redhat-1]
        at java.lang.Thread.run(Thread.java:679) [rt.jar:1.6.0_22]
Caused by: javax.xml.stream.XMLStreamException: ParseError at [row,col]:[270,4]
Message: JBAS014789: Unexpected element '{urn:jboss:domain:messaging:1.0}socket-binding-groups' encountered
        at org.jboss.as.controller.parsing.ParseUtils.unexpectedElement(ParseUti
  • Connection problem. Getting error:
javax.jms.JMSSecurityException thrown: HQ119031: Unable to validate user: null
javax.jms.JMSSecurityException: HQ119031: Unable to validate user: null

Environment

  • JBoss Enterprise Application Platform (EAP)
    • 6.0

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.