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 » PCF commands using MQHBAG

Post new topic  Reply to topic
 PCF commands using MQHBAG « View previous topic :: View next topic » 
Author Message
Rush124
PostPosted: Thu Sep 11, 2014 3:43 am    Post subject: PCF commands using MQHBAG Reply with quote

Novice

Joined: 05 Aug 2014
Posts: 19

Hi,

I m creating an adminBag using mqCreateBag(MQCBO_ADMIN_BAG) to send PCF commands And a responseBag to get reply messages.

Before creating bags, i m getting connected to Queue Manager.

But in the mqCreateBag command, connection handler is not used used as a parameter.

( bag creating code - mqCreateBag(MQCBO_ADMIN_BAG, &adminBag, &compCode, &reason); )

So how does mqCreateBag operate without the knowledge of it's QueueManager and other information (e.g.:- channel)??

(I am using c++)

Thanks in advance
Back to top
View user's profile Send private message
fjb_saper
PostPosted: Thu Sep 11, 2014 4:05 am    Post subject: Reply with quote

Grand High Poobah

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

you don't really need a connection to build a message. All you need are the rules on how to build the message. You do need a connection to send the message and get answers....
_________________
MQ & Broker admin
Back to top
View user's profile Send private message Send e-mail
Rush124
PostPosted: Thu Sep 11, 2014 8:16 pm    Post subject: Reply with quote

Novice

Joined: 05 Aug 2014
Posts: 19

Thank you, I got it.



I do not need to know the connection handler, when creating the bag. But when executing (Sending the command), connection handler is needed and passed as a parameter in mqExecute call.
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 API Support » PCF commands using MQHBAG
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.