How to configure resource adaptor for ActiveMQ connection URL containing multiple options
Issue
I have an ActiveMQ connection URL that contains multiple options. According to ActiveMQ syntax, the & is used to join the options. For example:
In my standalone-full.xml, the config-property for my resource-adaptor looks like:
<config-property name="ServerUrl">
failover:(tcp://localhost:61617)?startupMaxReconnectAttempts=15&jms.useCompression=true
</config-property>
When starting up JBoss server, it threw the following exception:
11:13:19,593 ERROR [org.jboss.as.server] (Controller Boot Thread) WFLYSRV0055: Caught exception during boot: org.jboss.as.controller.persistence.ConfigurationPersistenceException: WFLYCTL0085: Failed to parse configuration
at org.jboss.as.controller.persistence.XmlConfigurationPersister.load(XmlConfigurationPersister.java:131)
Environment
- Red Hat JBoss Enterprise Application Server (EAP)
- 6.x
- Red Hat JBoss AMQ
- 6.x
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.