Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

client connection to remote mq manager

Status
Not open for further replies.

galatasarayer

Programmer
Feb 11, 2005
3
TR
Hi,
I am trying to connect to a remote manager with the following code where I copied the whole from imqsput.cpp.
imqsputc.exe works fine with alpers/TCP/10.1.1.34(1414) parameters however I get 2058 reason code with the code below.
As I said imqsputc.exe works fine with these parameters and I copied the imqsputc code to another project and har coded parameters. When I use dspmq command I see "MQTEST Running".

Can anybody help me?
thanks in advance

ImqChannel * pchannel = 0 ;
pchannel = new ImqChannel ;
pchannel -> setHeartBeatInterval( 1 );
pchannel->setChannelName("alpers");
pchannel->setTransportType( MQXPT_TCP );
pchannel->setConnectionName("10.1.1.34(1414)");
qmgr.setChannelReference(pchannel);
qmgr.setName("MQTEST");
if ( !qmgr.connect( ) )
{ return RET_ERR;}
 
There was a verison problem I think 2058 problem is solved.
However I began to get 2277. Any ideas on this code?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top