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 API Support » MQCONN doubt

Post new topic  Reply to topic
 MQCONN doubt « View previous topic :: View next topic » 
Author Message
vjsony
PostPosted: Sat Jul 06, 2002 10:21 pm    Post subject: MQCONN doubt Reply with quote

Apprentice

Joined: 01 Aug 2001
Posts: 45

Hi,


Is it possible to issue more than one MQCONN call in a program?
I issue a MQCONN call connecting to Qmgr1. Without disconnecting, I issue a MQCONN call to another Qmgr2. Will this work?

Are there any constraints for such kind of a scenario?

Awaiting your replies ..

Thanks ..

VJ
Back to top
View user's profile Send private message Send e-mail
nimconsult
PostPosted: Sun Jul 07, 2002 10:34 pm    Post subject: Reply with quote

Master

Joined: 22 May 2002
Posts: 268
Location: NIMCONSULT - Belgium

Yes you can issue the MQCONN multiple times.

If you issue an MQCONN on a queue manager to which you were already connected, you will receive a warning with reason code "already connected", but you can use the received handle safely.

You cannot connect to more than one queue manager if you run under CICS.

If you connect to two different queue managers (QM1 and QM2 in your question), take care of transaction management: when you issue an MQGET or MQPUT under syncpoint, the scope of the unit of work is only the connection to the queue manager. If you want a global unit of work, then you need transaction coordination between the queue managers. To achieve you either use an external transaction coordinator (COM+/MTS on Windows, RRS on batch-OS/390, Tuxedo, Encina), or configure MQ Series to act as a transactional coordinator (but I have never attempted to configure MQ Series to act as a coordinator with another MQ Series). Read the chapter on Transactional support in the MQ Series system administration manual for more information.
_________________
Nicolas Maréchal
Senior Architect - Partner

NIMCONSULT Software Architecture Services (Belgium)
http://www.nimconsult.be
Back to top
View user's profile Send private message Send e-mail Visit poster's website
vjsony
PostPosted: Mon Jul 08, 2002 1:12 am    Post subject: Reply with quote

Apprentice

Joined: 01 Aug 2001
Posts: 45

Hi,

Thanks for your reply.

Could you tell me then when do we get this error MQRC_ANOTHER_Q_MGR_CONNECTED (Reason Code 2103)?

This reason code seems to indicate that you cannot simultaneously connect to more than one queue manager.

Do reply.

Thanks
VJ
Back to top
View user's profile Send private message Send e-mail
nimconsult
PostPosted: Mon Jul 08, 2002 2:13 am    Post subject: Reply with quote

Master

Joined: 22 May 2002
Posts: 268
Location: NIMCONSULT - Belgium

Oops, you are right, after double-check it seems that not all environments support multiple simultaneous connections.

I have personnaly tested OS/390 and COM+ applications that run perfectly with multiple connections. But on Windows for instance, non-COM+ applications cannot connect to multiple queue managers. I have tested with the "API exerciser" some minutes ago and got the RC 2103.
_________________
Nicolas Maréchal
Senior Architect - Partner

NIMCONSULT Software Architecture Services (Belgium)
http://www.nimconsult.be
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » IBM MQ API Support » MQCONN doubt
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.