How can I ensure that the hornet queues are there when my webapp starts in JBOSS 6.0?
问题 previous title was: How do I get a JNDI reference to a queue within JBOSS 6 using Spring? I configured a JMS queue like this, which is in a file mytopic-hornetq-jms.xml: <?xml version="1.0" encoding="UTF-8"?> <configuration xmlns="urn:hornetq" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="urn:hornetq /schema/hornetq-jms.xsd"> <topic name="mytopic"> <entry name="mytopic"/> </topic> </configuration> My applicationContext.xml looks like this: <?xml version="1.0"