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 » Unable to put messages....

Post new topic  Reply to topic
 Unable to put messages.... « View previous topic :: View next topic » 
Author Message
gvsagar
PostPosted: Wed May 01, 2002 5:38 pm    Post subject: Reply with quote

Newbie

Joined: 30 Apr 2002
Posts: 8

I am very new to MQ, recently I got a requirement that, I need to send a XML message to other program and need to retrieve the reply through MQ Series.
I am using MQ C++ APIs.
I know other machine's IP, queue manager name, reply and send queue names, channel name and userid/password of the channel.
Here I am not created any local queues and queue managers on my machine.
In my program by using C++ MQ API, I defined a channel (which is on other machine) by providing the server machine's ip, channel name, transport type, user id and password.
I created a quemanager object and did assigned the channel to the quemanager
manager.setChannelReference( channel );
I set the quemanager objects name with the other machines que manager name
After this I tested the connection, I am able to connect to the othar machines q-manager, After I created a Q object and assigned the required value to that object

pqueue -> setConnectionReference( manager );
pqueue -> setName( Que name of the othar machine );
pqueue -> setOpenOptions( MQOO_OUTPUT | MQOO_INPUT_SHARED | MQOO_INQUIRE );

Then when I tried to put a message by using put method, I am getting Not authorize error with the error code 2035.

I talked to the other people who gave me their MQ details, they said that every thing is fine with their side and all permissions are set.

I am not sure how to solve it, I trying but if any one has any Idea please let me know.

Thanks
Back to top
View user's profile Send private message
kolban
PostPosted: Thu May 02, 2002 7:33 am    Post subject: Reply with quote

Grand Master

Joined: 22 May 2001
Posts: 1072
Location: Fort Worth, TX, USA

When you put the message to the queue, the userid that is running the process of your compiled C++ application is used for authorization at the remote queue manager. You need to make sure that you have a local (to queue manager) definition of that userid as well as having provided put/get authorization on that queue.

What is the name of the userid that your C++ program is running?
Does that userid exist also on the Queue Manager system?
Is that userid allowed to put/get messages (see dspmqaut and setmqaut)?
Back to top
View user's profile Send private message
gvsagar
PostPosted: Thu May 02, 2002 9:19 am    Post subject: Reply with quote

Newbie

Joined: 30 Apr 2002
Posts: 8

Client program is running on my local machine, I think the user id my program using is my NT login id because I am not specified any user ID explicitly.
I am not sure how to create a local definition of my user ID, do I have to create any local queues/channels on my machine ?

Thanks,
Sagar.
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 » Unable to put messages....
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.