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 » connecting to mqseries in solaris from c++ code in win2k

Post new topic  Reply to topic
 connecting to mqseries in solaris from c++ code in win2k « View previous topic :: View next topic » 
Author Message
jguru
PostPosted: Thu Jan 15, 2004 9:39 am    Post subject: connecting to mqseries in solaris from c++ code in win2k Reply with quote

Newbie

Joined: 15 Jan 2004
Posts: 2

Hi,

I am trying to connect to mqseries queue in solaris from C++ code but always get this "ImqQueueManager::connect ended with reason code 2035"
I think this probably bcoz windows send the logged in user account which is not added in the mqm group in solaris.
What are the possible solutions for this?
- Will adding the windows login id in the solaris mqm group solve this?
- OR can we send userid "mqm" from windows env.
I tried some pieces of code for it, but it doesn't seems to work

Any response is highly appreciated
Thanks
Back to top
View user's profile Send private message
jguru
PostPosted: Thu Jan 15, 2004 9:52 am    Post subject: Reply with quote

Newbie

Joined: 15 Jan 2004
Posts: 2

sorry ..forgot to put the code i am using..here it is

........................................................
ImqQueueManager mgr;
ImqQueue queue;
ImqMessage msg;
ImqChannel * pchannel = 0 ;

pchannel = new ImqChannel ;
pchannel -> setChannelName("SYSTEM.DEF.SVRCONN");
pchannel -> setTransportType(MQXPT_TCP);
pchannel -> setConnectionName(CONNECTION_NAME);


mgr.setChannelReference( pchannel );
mgr.setName(Q_MGR_NAME);

mgr.setAlternateUserId("mqm");

if ( ! mgr.connect( ) ) {

printf( "ImqQueueManager::connect ended with reason code %d\n",
(int)mgr.reasonCode( ) );
exit( (int)mgr.reasonCode( ) );
}

queue.setConnectionReference( mgr );
queue.setName(QNAME);
queue.setOpenOptions( MQOO_OUTPUT
+ MQOO_FAIL_IF_QUIESCING);
queue.open( );
............................
............................
Back to top
View user's profile Send private message
jefflowrey
PostPosted: Thu Jan 15, 2004 10:15 am    Post subject: Reply with quote

Grand Poobah

Joined: 16 Oct 2002
Posts: 19981

Have you tried using the Search button to look for other posts about '2035' error messages?
_________________
I am *not* the model of the modern major general.
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 » connecting to mqseries in solaris from c++ code in win2k
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.