ASG
IBM
Zystems
Cressida
Icon
Netflexity
 
  MQSeries.net
Search  Search       Tech Exchange      Education      Certifications      Library      Info Center      SupportPacs      LinkedIn  Search  Search                                                                   FAQ  FAQ   Usergroups  Usergroups
 
Register  ::  Log in Log in to check your private messages
 
RSS Feed - WebSphere MQ Support RSS Feed - Message Broker Support

MQSeries.net Forum Index » WebSphere Message Broker (ACE) Support » Reading JMS messages from Multi instance MQ

Post new topic  This topic is locked: you cannot edit posts or make replies.
 Reading JMS messages from Multi instance MQ « View previous topic :: View next topic » 
Author Message
alaychem
PostPosted: Tue Dec 18, 2018 5:52 am    Post subject: Reading JMS messages from Multi instance MQ Reply with quote

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
View user's profile Send private message
fjb_saper
PostPosted: Tue Dec 18, 2018 8:45 pm    Post subject: Re: Reading JMS messages from Multi instance MQ Reply with quote

Grand High Poobah

Joined: 18 Nov 2003
Posts: 20696
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
View user's profile Send private message Send e-mail
alaychem
PostPosted: Mon Dec 31, 2018 7:28 am    Post subject: Re: Reading JMS messages from Multi instance MQ Reply with quote

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
View user's profile Send private message
Vitor
PostPosted: Wed Jan 02, 2019 6:38 am    Post subject: Reply with quote

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
View user's profile Send private message
fjb_saper
PostPosted: Fri Jan 04, 2019 9:58 pm    Post subject: Re: Reading JMS messages from Multi instance MQ Reply with quote

Grand High Poobah

Joined: 18 Nov 2003
Posts: 20696
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
View user's profile Send private message Send e-mail
Display posts from previous:   
Post new topic  This topic is locked: you cannot edit posts or make replies. Page 1 of 1

MQSeries.net Forum Index » WebSphere Message Broker (ACE) Support » Reading JMS messages from Multi instance MQ
Jump to:  



You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
Protected by Anti-Spam ACP
 
 


Theme by Dustin Baccetti
Powered by phpBB © 2001, 2002 phpBB Group

Copyright © MQSeries.net. All rights reserved.