Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
JMS bridge between two standalone WildFly instances
<jms-bridge name="jms-bridge-name">
<source>
<connection-factory name="jms/RemoteConnectionFactory"/>
<destination name="jms/queue/sourceQ"/>
<!-- jmsuser with the same password is registered in ApplicationRealm with permission to consume/send messages -->
<user>jmsuser</user>
<password>pass</password>
<context>
<!-- The username and password must be added to the context to allow remote registry lookup -->
<property key="java.naming.factory.initial" value="org.jboss.naming.remote.client.InitialContextFactory"/>
<property key="java.naming.provider.url" value="http-remoting://host.domain:8080"/>
<property key="java.naming.security.principal" value="jmsuser"/>
<property key="java.naming.security.credentials" value="pass"/>
</context>
</source>
<target>
<connection-factory name="ConnectionFactory"/>
<destination name="jms/queue/targetQ"/>
</target>
<quality-of-service>ONCE_AND_ONLY_ONCE</quality-of-service>
<failure-retry-interval>10000</failure-retry-interval>
<max-retries>10</max-retries>
<max-batch-size>500</max-batch-size>
<max-batch-time>50</max-batch-time>
<add-messageID-in-header>true</add-messageID-in-header>
</jms-bridge>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment