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 » Accessing already open queue in C++

Post new topic  Reply to topic
 Accessing already open queue in C++ « View previous topic :: View next topic » 
Author Message
kayou
PostPosted: Thu Oct 26, 2006 10:48 pm    Post subject: Accessing already open queue in C++ Reply with quote

Novice

Joined: 05 Aug 2006
Posts: 21

Hi,

I have the piece of code C# code running very well. But if i try to translate in C++, it seems there's no "accessQueue" method or function in C++. Could someone tell me how I coul translate my C# code in C++ ? The purpose of this code is to open an instance of a queue for my process even if that queue is already open (reason code 2100).

int options = MQC.MQOO_OUTPUT +
MQC.MQOO_INPUT_AS_Q_DEF +
MQC.MQOO_INQUIRE +
MQC.MQOO_FAIL_IF_QUIESCING;

String m_queue_name = "ALREADY_EXISTING_QUEUE";
MQQueue m_queue = m_qmgr.AccessQueue(m_queue_name, options);
Back to top
View user's profile Send private message
jefflowrey
PostPosted: Fri Oct 27, 2006 1:40 am    Post subject: Reply with quote

Grand Poobah

Joined: 16 Oct 2002
Posts: 19981

http://publib.boulder.ibm.com/infocenter/wmqv6/v6r0/index.jsp?topic=/com.ibm.mq.amqzan.doc/samphw.htm
_________________
I am *not* the model of the modern major general.
Back to top
View user's profile Send private message
kayou
PostPosted: Fri Oct 27, 2006 10:42 am    Post subject: Reply with quote

Novice

Joined: 05 Aug 2006
Posts: 21

jefflowrey,

Thanks for the link. But it does not help me. I'm a little bit more than a newbie in MQSeries.

I already wrote a C# API for applications running on WMQ with MQRFH pub/sub messages. I built formerly this API with VB6/ACTIVEX. The API is running fine for those two languages. Those two languages have the "MQManager.AcessQueue". But C++ seems not to have it.

For your information : Queues are opened by "MQManager.AccessQueue" in C# and VB6. But, in C++ they are opened by "ImqQueue.open".

I gonna do some debug ; may be with the "ImqQueue.open" I'll be able to do all the "MQManager.AccessQueue" does.
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 » Accessing already open queue in C++
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.