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 » IBM MQ Java / JMS » Woriking JMS with multi instance QM

Post new topic  Reply to topic
 Woriking JMS with multi instance QM « View previous topic :: View next topic » 
Author Message
alaychem
PostPosted: Tue Jan 01, 2019 6:13 am    Post subject: Woriking JMS with multi instance QM Reply with quote

Acolyte

Joined: 10 Feb 2016
Posts: 66

** Moved from broker support forum**
As part of a IIB 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 use com.ibm.mq.jms.Nojndi as initial context factory, and we use the common URI syntax to define the connection factory
https://www.ibm.com/support/knowledgecenter/en/SSFKSJ_7.5.0/com.ibm.mq.ref.dev.doc/q108010_.htm

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 (weird 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.

fjb_saper offered me to use CCDT, but I can't realize how to use it in the connectionFactory
Back to top
View user's profile Send private message
fjb_saper
PostPosted: Tue Jan 01, 2019 6:22 am    Post subject: Reply with quote

Grand High Poobah

Joined: 18 Nov 2003
Posts: 20696
Location: LI,NY

you might have more success using a JNDI type factory than a non JNDI type.
The non JNDI type will have limited support and only allow for the stuff IBM preprogrammed into it i.e. if it is simple it just works; if it gets more comples you're SOL
_________________
MQ & Broker admin
Back to top
View user's profile Send private message Send e-mail
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » IBM MQ Java / JMS » Woriking JMS with multi instance QM
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.