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 » Sample MQ Java program to PUT/GET to Multi Instance QMGR

Post new topic  Reply to topic
 Sample MQ Java program to PUT/GET to Multi Instance QMGR « View previous topic :: View next topic » 
Author Message
vennela
PostPosted: Mon Aug 05, 2013 2:21 am    Post subject: Sample MQ Java program to PUT/GET to Multi Instance QMGR Reply with quote

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
View user's profile Send private message Send e-mail Visit poster's website
Vitor
PostPosted: Tue Aug 06, 2013 5:38 am    Post subject: Re: Sample MQ Java program to PUT/GET to Multi Instance QMGR Reply with quote

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
View user's profile Send private message
hughson
PostPosted: Tue Aug 06, 2013 5:49 am    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website
fjb_saper
PostPosted: Wed Aug 07, 2013 9:33 am    Post subject: Reply with quote

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
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 » Sample MQ Java program to PUT/GET to Multi Instance QMGR
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.