|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
 |
|
MQPUT fails:2035 when enabling AMS in multi threaded env |
« View previous topic :: View next topic » |
Author |
Message
|
yasaboy |
Posted: Wed Dec 03, 2014 4:48 am Post subject: MQPUT fails:2035 when enabling AMS in multi threaded env |
|
|
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 |
|
 |
Vitor |
Posted: Wed Dec 03, 2014 6:14 am Post subject: Re: MQPUT fails:2035 when enabling AMS in multi threaded env |
|
|
 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 |
|
 |
yasaboy |
Posted: Wed Dec 03, 2014 11:46 pm Post subject: Re: MQPUT fails:2035 when enabling AMS in multi threaded env |
|
|
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 |
|
 |
Vitor |
Posted: Thu Dec 04, 2014 5:06 am Post subject: Re: MQPUT fails:2035 when enabling AMS in multi threaded env |
|
|
 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 |
|
 |
|
|
 |
|
Page 1 of 1 |
|
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
|
|
|
|