3 Replies Latest reply on Feb 10, 2011 12:07 AM by jaikiran

    Adding Queue to JBoss AS 6

    genman

      Not sure how to add a stand-alone hornetq-queues.xml file. The documentation doesn't really provide a working example.

       

      I'm trying to do something like:

       

      <configuration xmlns="urn:hornetq"
                  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
                  xsi:schemaLocation="urn:hornetq /schema/hornetq-jms.xsd">
      
              <queues>
                 <queue name="FooQueue">
                    <entry name="queues/foo"/>
                 </queue>
                 <queue name="BarQueue">
                    <entry name="queues/bar"/>
      
                 </queue>
              </queues>
      
      </configuration>
      

       

      But I'm running into issues with JBoss 6:

       

        Deployment "vfs:///Users/elias/jboss-6.0.0.Final/server/default/deploy/iad/hornetq-queues.xml"
      is in error due to the following reason(s): org.xml.sax.SAXParseException:
      cvc-complex-type.2.4.a: Invalid content was found starting with element 'entry'.
      One of '{"urn:hornetq":address, "urn:hornetq":filter, "urn:hornetq":durable}' is expected.

       

      I need the queues defined externally from HornetQ's directory.

       

      Something like this doesn't put anything into JNDI:

       

      <configuration xmlns="urn:hornetq"
                  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
                  xsi:schemaLocation="urn:hornetq /schema/hornetq-jms.xsd">
      
              <queues>
                 <queue name="FooQueue">
                    <filter string=''/>
                    <address>jms.queue.FooQueue</address>
                    <durable>true</durable>
                 </queue>
                 <queue name="BarQueue">
                    <filter string=''/>
                    <address>jms.queue.BarQueue</address>
                    <durable>true</durable>
                 </queue>
              </queues>
      
      </configuration>
      

       

      Is there some reason "filter" is required? ... I'm a bit lost, but haven't found the docs I'm looking for.