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 Security » MQPUT fails:2035 when enabling AMS in multi threaded env

Post new topic  Reply to topic
 MQPUT fails:2035 when enabling AMS in multi threaded env « View previous topic :: View next topic » 
Author Message
yasaboy
PostPosted: Wed Dec 03, 2014 4:48 am    Post subject: MQPUT fails:2035 when enabling AMS in multi threaded env Reply with quote

Voyager

Joined: 23 Jun 2014
Posts: 90

Hi,

I am trying to use the AMS functionality in IBMMQ. After enabling AMS and setting policies to a particular queue I tried to put a message to the queue using MQPUT in the main thread of my application and it succeeded.

Afterwards I tried to give the MQCONN and MQPUT library commands in a separate worker-thread (posix thread)created, and the system always fails by saying the error code 2035 for that particular queue.

Can't we use the AMS facility with multi threading ? what is the settings or changes that needed to be done in order for this to be working?

( Our IBMMQ version is 7.5 / unix readhat / client mode )
Back to top
View user's profile Send private message
Vitor
PostPosted: Wed Dec 03, 2014 6:14 am    Post subject: Re: MQPUT fails:2035 when enabling AMS in multi threaded env Reply with quote

Grand High Poobah

Joined: 11 Nov 2005
Posts: 26093
Location: Texas, USA

yasaboy wrote:
Can't we use the AMS facility with multi threading ? what is the settings or changes that needed to be done in order for this to be working?


You need a PMR. We encountered an issue using multi-threading with AMS which sounds related to yours but not identical, which came back from IBM as a bug in the MQ software.
_________________
Honesty is the best policy.
Insanity is the best defence.
Back to top
View user's profile Send private message
yasaboy
PostPosted: Wed Dec 03, 2014 11:46 pm    Post subject: Re: MQPUT fails:2035 when enabling AMS in multi threaded env Reply with quote

Voyager

Joined: 23 Jun 2014
Posts: 90

Vitor wrote:
yasaboy wrote:
Can't we use the AMS facility with multi threading ? what is the settings or changes that needed to be done in order for this to be working?


You need a PMR. We encountered an issue using multi-threading with AMS which sounds related to yours but not identical, which came back from IBM as a bug in the MQ software.


Hi,

How or what causes this kind of a problem ? I mean normal scenario a thread switching will not change the unix user that is running the program. And here is a sample output of our test application with AMS.

/// Main thread ////

On Proc Run at MainApp

user is -> dev50
Sample AMQSPUT0 start
target queue is T.OUTQUEUE
Hello World !! (put successful)

/// Worker thread ////

Constructor of AppWorkerThread
On Proc Run at AppWorkerThread

user is -> dev50
Sample AMQSPUT0 start
target queue is T.OUTQUEUE
MQOPEN ended with reason code 2035
unable to open queue for output
Sample AMQSPUT0 end

Isn't there any option possible than adding a PMR?
Back to top
View user's profile Send private message
Vitor
PostPosted: Thu Dec 04, 2014 5:06 am    Post subject: Re: MQPUT fails:2035 when enabling AMS in multi threaded env Reply with quote

Grand High Poobah

Joined: 11 Nov 2005
Posts: 26093
Location: Texas, USA

yasaboy wrote:
Isn't there any option possible than adding a PMR?


If you know another way to get an fix for IBM software (or an explaination of it's behaviour), use it.


_________________
Honesty is the best policy.
Insanity is the best defence.
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 Security » MQPUT fails:2035 when enabling AMS in multi threaded env
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.