how to set jndi setting for multiple data centers discovery for JMS MQ consumer?

Solution In Progress - Updated -

Issue

I use external client to communicate with fabric, as it showed in example here:

https://github.com/FuseByExample/external-mq-fabric-client
and it works fine for one datacenter, which is defined in the client jndi properties:

https://github.com/FuseByExample/external-mq-fabric-client/blob/master/simple-consumer/src/main/resources/jndi.properties

How to configure the jndi.properies to be able to connect to multiple datacenters?
For now I can connect and send messages to "amq-west" datacenter but how to do connect to "amq-est" as well?

Environment

  • JBoss A-MQ 6.1
  • JBoss Fuse 6.1

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content