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 » MQCONN working fine MQOPEN giving error

Post new topic  Reply to topic
 MQCONN working fine MQOPEN giving error « View previous topic :: View next topic » 
Author Message
Kazim
PostPosted: Mon Feb 20, 2006 9:11 am    Post subject: MQCONN working fine MQOPEN giving error Reply with quote

Guest




Hi All

I am pertty new to the MQ. I am trying to connect to a MQ queue manager (QM) and put a message on the queue.

I worte a small perl program (for testing purpose) The perl program connect QM using MQCONN then opens a queue as output ( MQOO_OUTPUT | MQOO_FAIL_IF_QUIESCING | MQOO_SET_ALL_CONTEXT) usinf MQOPEN and puts a meassage using MQPUT.

The call to MQCONN works fine. However the call to MQOPEN fails with error code 2035 {MQOPEN failed with CompCode:2, Reason:2035 (Not authorized for access.)}

I have checked with the queue administrator. And he is positive that there is no User Authentication

Any idea why i am getting this error.

Any help will be highly appreciated.

Regards
Kazim
Back to top
mvic
PostPosted: Mon Feb 20, 2006 9:26 am    Post subject: Re: MQCONN working fine MQOPEN giving error Reply with quote

Jedi

Joined: 09 Mar 2004
Posts: 2080

Read up on the meaning of MQOO_SET_ALL_CONTEXT. The MQOPEN may work if you leave this option off the call.
Back to top
View user's profile Send private message
RogerLacroix
PostPosted: Mon Feb 20, 2006 10:13 pm    Post subject: Reply with quote

Jedi Knight

Joined: 15 May 2001
Posts: 3253
Location: London, ON Canada

Hi,

Since the posting has nothing to do with Capitalware products, I have moved it to a more appropriate forum.

Regards,
Roger Lacroix
_________________
Capitalware: Transforming tomorrow into today.
Connected to MQ!
Twitter
Back to top
View user's profile Send private message Visit poster's website
HubertKleinmanns
PostPosted: Tue Feb 21, 2006 10:03 am    Post subject: Reply with quote

Shaman

Joined: 24 Feb 2004
Posts: 732
Location: Germany

kazim,

to work with MQ you need several permissions

1. connect to a QMgr

2. to open a queue

3. to put, browse, get ... a message.

All permissions may be set separately. Run the following command as a mq admin:

dspmqaut -m <your_qmgr> -t q -n <your_queue> -p <your_user>
dspmqaut -m <your_qmgr> -t q -n <your_queue> -p <your_user>
_________________
Regards
Hubert
Back to top
View user's profile Send private message Visit poster's website
fjb_saper
PostPosted: Tue Feb 21, 2006 5:47 pm    Post subject: Reply with quote

Grand High Poobah

Joined: 18 Nov 2003
Posts: 20696
Location: LI,NY

And please remember that in a production environment you should not allocate permissions to an individual if you can allocate them to a group.

The individuals will then be made members of the group.

Enjoy
_________________
MQ & Broker admin
Back to top
View user's profile Send private message Send e-mail
tanuj33
PostPosted: Fri Mar 17, 2006 4:09 am    Post subject: Reply with quote

Newbie

Joined: 13 Mar 2006
Posts: 6

From an old audit log I've found following for the queue which is used for mqopen & mqput :

ObjectType: queue
ObjectName: IWH_TRD.USMD.ACK.REMOTE

Principal: mqm
Authorities: browse get inq passall passid put set setall setid chg clr dlt dsp (0x001e07ff)
Principal: iwhmq
Authorities: put (0x00000008)

Do I 've adequate permissions ?
Back to top
View user's profile Send private message
wschutz
PostPosted: Fri Mar 17, 2006 4:13 am    Post subject: Reply with quote

Jedi Knight

Joined: 02 Jun 2005
Posts: 3316
Location: IBM (retired)

tanuj33 wrote:

Do I 've adequate permissions ?
To do what we're discusing here?

http://www.mqseries.net/phpBB2/search.php?search_id=newposts
_________________
-wayne
Back to top
View user's profile Send private message Send e-mail AIM Address
PeterPotkay
PostPosted: Fri Mar 17, 2006 4:48 am    Post subject: Reply with quote

Poobah

Joined: 15 May 2001
Posts: 7717

http://www-1.ibm.com/support/docview.wss?rs=171&uid=swg21166937
_________________
Peter Potkay
Keep Calm and MQ On
Back to top
View user's profile Send private message
Debzuh
PostPosted: Thu Aug 03, 2006 1:39 am    Post subject: Reply with quote

Guest




Sick.
Back to top
obekosomatic
PostPosted: Thu Aug 03, 2006 2:30 am    Post subject: Reply with quote

Newbie

Joined: 10 Jun 2006
Posts: 1

very nice indeed
_________________
only me
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 » MQCONN working fine MQOPEN giving error
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.