Author |
Message
|
alaychem |
Posted: Tue Dec 18, 2018 5:52 am Post subject: Reading JMS messages from Multi instance MQ |
|
|
Acolyte
Joined: 10 Feb 2016 Posts: 66
|
As part of a migration process, we switch from one local MQ to distant Multi instance gateway.
One of the tasks is to read (and write) JMS messages from that MQ.
We used to configure the MQ connection with:
Code: |
mqsichangeproperties BROKER -c JMSProviders -o WebSphere_MQ -n ConnectionFactoryName -v "(connectQueueManager(QMGR)binding(auto))" |
I changed it to:
Code: |
mqsichangeproperties BROKER -c JMSProviders -o WebSphere_MQ -n ConnectionFactoryName -v "(connectQueueManager(QMGR)binding(client)clientChannel(SOME.CHANNEL)clientConnection(\"host-of-mq-gw-1:1234,host-of-mq-gw-2:1234\"))" |
But it didn't work (werid exceptions were thrown and messages were not read from queue)
Now I use:
Code: |
mqsichangeproperties BROKER -c JMSProviders -o WebSphere_MQ -n ConnectionFactoryName -v "(connectQueueManager(QMGR)binding(client)clientChannel(SOME.CHANNEL)clientConnection(host-of-mq-gw-1:1234))" |
But it will not connect to the other MQ instance in case of failover.
I guess that VIP will work, but isn't there a better solution? |
|
Back to top |
|
 |
fjb_saper |
Posted: Tue Dec 18, 2018 8:45 pm Post subject: Re: Reading JMS messages from Multi instance MQ |
|
|
 Grand High Poobah
Joined: 18 Nov 2003 Posts: 20756 Location: LI,NY
|
alaychem wrote: |
As part of a migration process, we switch from one local MQ to distant Multi instance gateway.
One of the tasks is to read (and write) JMS messages from that MQ.
We used to configure the MQ connection with:
Code: |
mqsichangeproperties BROKER -c JMSProviders -o WebSphere_MQ -n ConnectionFactoryName -v "(connectQueueManager(QMGR)binding(auto))" |
I changed it to:
Code: |
mqsichangeproperties BROKER -c JMSProviders -o WebSphere_MQ -n ConnectionFactoryName -v "(connectQueueManager(QMGR)binding(client)clientChannel(SOME.CHANNEL)clientConnection(\"host-of-mq-gw-1:1234,host-of-mq-gw-2:1234\"))" |
But it didn't work (werid exceptions were thrown and messages were not read from queue)
Now I use:
Code: |
mqsichangeproperties BROKER -c JMSProviders -o WebSphere_MQ -n ConnectionFactoryName -v "(connectQueueManager(QMGR)binding(client)clientChannel(SOME.CHANNEL)clientConnection(host-of-mq-gw-1:1234))" |
But it will not connect to the other MQ instance in case of failover.
I guess that VIP will work, but isn't there a better solution? |
Have you tried using a channel table? This should allow you to specify both addresses(port) in the conname of the client connection channel.  _________________ MQ & Broker admin |
|
Back to top |
|
 |
alaychem |
Posted: Mon Dec 31, 2018 7:28 am Post subject: Re: Reading JMS messages from Multi instance MQ |
|
|
Acolyte
Joined: 10 Feb 2016 Posts: 66
|
fjb_saper wrote: |
Have you tried using a channel table? This should allow you to specify both addresses(port) in the conname of the client connection channel.  |
So how would the syntax will look like? I tried to load the CCDT location to the JVM and removed the clientConnection and channel properties, but still got the same errors. |
|
Back to top |
|
 |
Vitor |
Posted: Wed Jan 02, 2019 6:38 am Post subject: |
|
|
 Grand High Poobah
Joined: 11 Nov 2005 Posts: 26093 Location: Texas, USA
|
Reposted in more appropriate forum here. _________________ Honesty is the best policy.
Insanity is the best defence. |
|
Back to top |
|
 |
fjb_saper |
Posted: Fri Jan 04, 2019 9:58 pm Post subject: Re: Reading JMS messages from Multi instance MQ |
|
|
 Grand High Poobah
Joined: 18 Nov 2003 Posts: 20756 Location: LI,NY
|
alaychem wrote: |
fjb_saper wrote: |
Have you tried using a channel table? This should allow you to specify both addresses(port) in the conname of the client connection channel.  |
So how would the syntax will look like? I tried to load the CCDT location to the JVM and removed the clientConnection and channel properties, but still got the same errors. |
Look at the generic JMS provider and supply the file context information...  _________________ MQ & Broker admin |
|
Back to top |
|
 |
|