Hello all, I have a problem with naming hornetQ queues with the character "/" in the name field.
This is what my hornetq-configuration.xml looks like :
<configuration xmlns="urn:hornetq" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="urn:hornetq /schema/hornetq-configuration.xsd"> <queues> <queue name="/queue/stomp.gw"> <address>/queue/stomp.gw</address> </queue> <queue name="/queue/stomp.reply"> <address>/queue/stomp.reply</address> </queue> </queues> </configuration>
And it spits out the following error in the Jboss console:
2010-12-16 07:36:44,140 SEVERE [org.hornetq.utils.XMLUtil] (main) Invalid configuration org.xml.sax.SAXParseException; cvc-datatype-valid.1.2.1: '/queue/stomp.gw' is not a valid value for 'NCName'.
This is very similar to another thread located http://community.jboss.org/message/524981 , but theirs is located in the hornetq-jms.xml. It looks like there was an issue reported and fixed but the problem still exists for us in the config.xml
Is there any insight on this issue?
Thanks
Queue Name is different to the JNDI address. It's not legal to use the queue name with slashes.
You could have a queue called QueueA with multiple JNDI Bindings.