|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
 |
|
Sample MQ Java program to PUT/GET to Multi Instance QMGR |
« View previous topic :: View next topic » |
Author |
Message
|
vennela |
Posted: Mon Aug 05, 2013 2:21 am Post subject: Sample MQ Java program to PUT/GET to Multi Instance QMGR |
|
|
 Jedi Knight
Joined: 11 Aug 2002 Posts: 4055 Location: Hyderabad, India
|
Hi
Can you point me to a sample Java (non-JMS) program that can connect to a Multi Instance QueueManager please
Thanks |
|
Back to top |
|
 |
Vitor |
Posted: Tue Aug 06, 2013 5:38 am Post subject: Re: Sample MQ Java program to PUT/GET to Multi Instance QMGR |
|
|
 Grand High Poobah
Joined: 11 Nov 2005 Posts: 26093 Location: Texas, USA
|
vennela wrote: |
Can you point me to a sample Java (non-JMS) program that can connect to a Multi Instance QueueManager please |
How would this differ from a sample that connects to a non-MI qmgr?
Surely the difference is in the connection definition, not the code. _________________ Honesty is the best policy.
Insanity is the best defence. |
|
Back to top |
|
 |
hughson |
Posted: Tue Aug 06, 2013 5:49 am Post subject: |
|
|
 Padawan
Joined: 09 May 2013 Posts: 1959 Location: Bay of Plenty, New Zealand
|
As Vitor says, unless you are hard-coding the connection details in your Java application which would not be good practice, then your application doesn't need to change.
If you can let us know how you currently configure your connection details, we can then aid you in knowing how to change them.
Possible ways to configure connection details include:-
- Hard-coded in the application.
- set MQSERVER=....
- Client Channel Definition Table
- Pre-connect exit
Cheers
Morag _________________ Morag Hughson @MoragHughson
IBM MQ Technical Education Specialist
Get your IBM MQ training here!
MQGem Software
Last edited by hughson on Thu Aug 08, 2013 1:28 am; edited 1 time in total |
|
Back to top |
|
 |
fjb_saper |
Posted: Wed Aug 07, 2013 9:33 am Post subject: |
|
|
 Grand High Poobah
Joined: 18 Nov 2003 Posts: 20756 Location: LI,NY
|
I looked and tried the information on the infocenter. I could not find the equivalent of connection name list for base java, either in the infocenter or as a field on MQConstants (there are so many...).
I believe finding this is a start for connection to a multi-instance qmgr using base java.
Your best bet might be a client connection definition table (CCDT)  _________________ MQ & Broker admin |
|
Back to top |
|
 |
|
|
 |
|
Page 1 of 1 |
|
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
|
|
|
|