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 » Requesting Source Code "Using" MQCONNX In JMS

Post new topic  Reply to topic
 Requesting Source Code "Using" MQCONNX In JMS « View previous topic :: View next topic » 
Author Message
AlphaOmega
PostPosted: Fri Sep 22, 2006 7:16 am    Post subject: Requesting Source Code "Using" MQCONNX In JMS Reply with quote

Newbie

Joined: 05 May 2006
Posts: 9

Hello:

Would anyone be able to point me in the direction of source code where a person uses Java Message Service and MQ client to connect to multiple MQ servers? For instance, the application utilizing Java Message Service and MQ client on a Windows server would MQGET from and MQPUT to multiple Linux servers over TCP/IP. I recognize that there would be no "MQCONNX" call in Java Message Service per se, but I was thinking that this must be accomplishable if one correctly uses IBM's JMS MQ factory. Thank you.
Back to top
View user's profile Send private message
jefflowrey
PostPosted: Fri Sep 22, 2006 7:29 am    Post subject: Reply with quote

Grand Poobah

Joined: 16 Oct 2002
Posts: 19981

To open a connection to a single queue manager in JMS, you create a single QueueConnection object from a single Queue Connection Factory.

To open multiple connections to multiple queue managers in JMS, you create ________ QueueConnection object(s) from ___________ Queue Connection Factory(ies).

A) single, single
B) multiple, single
C) multiple, multiple
D) single, multiple
_________________
I am *not* the model of the modern major general.
Back to top
View user's profile Send private message
AlphaOmega
PostPosted: Fri Sep 22, 2006 7:46 am    Post subject: Is That All That It Requires? Reply with quote

Newbie

Joined: 05 May 2006
Posts: 9

Would there be anything else needed for the server queue manager or on the Windows server that hosts the MQ client application? A client connection table or something like that? I know that you would NOT want to use the "SET MQSERVER" environment variable or anything like that.
Back to top
View user's profile Send private message
jefflowrey
PostPosted: Fri Sep 22, 2006 7:52 am    Post subject: Reply with quote

Grand Poobah

Joined: 16 Oct 2002
Posts: 19981

It's the same requirements for one connection as for many connections.

You need to know channel, hostname, and port, or you can use a client channel.

Most applications do not need to connect to more than one queue manager at a time, though, and most applications shouldn't connect to more than one queue manager at a time.

Monitoring/management applications are about the only ones that need to.
_________________
I am *not* the model of the modern major general.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » IBM MQ Java / JMS » Requesting Source Code "Using" MQCONNX In JMS
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.