Version 3

    Starting JBoss AS 6.0.0.M3, JBoss AS by default ships with HornetQ as the JMS provider. To create a queue/topic in AS6, you will have to create a *-hornetq-jms.xml with contents like this:

     

    <configuration xmlns="urn:hornetq"
                xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
                xsi:schemaLocation="urn:hornetq /schema/hornetq-jms.xsd">
    
    <queue name="MyQueue">
          <entry name="/queue/myQueue"/>
       </queue>
    
    </configuration>

     

    and place it either

    • in the JBOSS_HOME/server/<configuration>/deploy folder.
    • in your EJB jar (at root level in the EJB jar or in the subdirectory "META-INF")

     

    You might also edit the global server configuration, which can be found at "%JBOSS_HOME%\server\<configuration\deploy\hornetq\hornetq-jms.xml".

     

    For more details, refer to the HornetQ documentation

     

     

    Forum discussions:

     

    Configure queue in JBoss AS6

    Deploy queue/topic within an .ear