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 » Search

 Search found 8 matches
Author Message
  Topic: Error (reasonCode=2059) on connection to MQ
vbajwa

Replies: 2
Views: 6500

PostForum: IBM MQ API Support   Posted: Tue Feb 20, 2007 9:00 am   Subject: Error (reasonCode=2059) on connection to MQ
I am using the C++ interface, MQ version 5.3.0.5. Specifying the channel reference while connecting. Not using the MQSERVER env variable (because I need to connect to multiple QMs). Any suggestions ap ...
  Topic: Connecting to ImqQueueManager using QM/host/port/CHL
vbajwa

Replies: 5
Views: 9615

PostForum: IBM MQ API Support   Posted: Thu Feb 08, 2007 8:42 am   Subject: Connecting to ImqQueueManager using QM/host/port/CHL

OK, I think I got it, also found this useful bit of code. Thanks to all for pointing in the right direction. The link is: http://www.mqfaq.com/webspheremq.php

mgr.setName(argv[1]);
in_queue. ...
  Topic: Connecting to ImqQueueManager using QM/host/port/CHL
vbajwa

Replies: 5
Views: 9615

PostForum: IBM MQ API Support   Posted: Wed Feb 07, 2007 4:28 pm   Subject: Connecting to ImqQueueManager using QM/host/port/CHL

Thanks for your reply! I learned something, but I still don't see how I can set hostname, port number and channel number.

Also, what exactly does it mean to say: "local queue manager" ...
  Topic: Connecting to ImqQueueManager using QM/host/port/CHL
vbajwa

Replies: 5
Views: 9615

PostForum: IBM MQ API Support   Posted: Wed Feb 07, 2007 12:49 pm   Subject: Connecting to ImqQueueManager using QM/host/port/CHL
My program has to connect to three different QMs. From the API docs the ImqQueueManager only takes a QM name string. However the MQSERVER environment variable has to be set from outside like:
expor ...
  Topic: Reading from MQ with timeout (C++)
vbajwa

Replies: 15
Views: 21623

PostForum: IBM MQ API Support   Posted: Fri Feb 02, 2007 1:24 pm   Subject: Reading from MQ with timeout (C++)
From the APG:
Thank you very much for all responses. There are a million places where MQ API is documented, the one I use is very terse:
http://publib.boulder.ibm.com/infocenter/wmqv6/v6r0/index.jsp ...
  Topic: Reading from MQ with timeout (C++)
vbajwa

Replies: 15
Views: 21623

PostForum: IBM MQ API Support   Posted: Wed Jan 31, 2007 10:32 am   Subject: Re: Reading from MQ with timeout (C++)
Given the above code (in fiirst msg in thread) after I passed in a new message on each get() call, things started working fine with infinitw wait. However, when I pass a timeout value, ImqQueue::get(m ...
  Topic: Reading from MQ with timeout (C++)
vbajwa

Replies: 15
Views: 21623

PostForum: IBM MQ API Support   Posted: Wed Jan 31, 2007 10:11 am   Subject: Reading from MQ with timeout (C++)
How do you know there are messages on the queue?

Also, you probably need to reset the MsgId and CorrelId between GETS.

In C++ probably best to create a new msg object each time.

That worked b ...
  Topic: Reading from MQ with timeout (C++)
vbajwa

Replies: 15
Views: 21623

PostForum: IBM MQ API Support   Posted: Wed Jan 31, 2007 8:21 am   Subject: Reading from MQ with timeout (C++)
There are messages on the queue. When I connect my program, it gets the first message, then when I call ImqQueue::get() with a wait of 500ms, the get returns with a "false" and the completio ...
Page 1 of 1

Jump to:  
Protected by Anti-Spam ACP
 
 


Theme by Dustin Baccetti
Powered by phpBB © 2001, 2002 phpBB Group

Copyright © MQSeries.net. All rights reserved.