galatasarayer
Programmer
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;}
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;}