Posted: Mon Jan 22, 2007 2:47 pm Post subject: MQ Error 2039 when using MQPut API within an external Java
Newbie
Joined: 22 Jan 2007 Posts: 8
We get the MQexception 2039 when connecting to the queue manager using Java API provided by MQ. The call to the MQ Java class happens from within the message flow, as an external Java program. MQ put from Java is successful, but the subsequent queue open for output (MQOutput node in the message flow) fails. It is as if only one connection to the queue manager from a single thread is allowed. Is that true? Is there something in MQ environment, queue open options or message put options that will fix this?
Posted: Mon Jan 22, 2007 11:53 pm Post subject: Re: MQ Error 2039 when using MQPut API within an external Ja
Grand High Poobah
Joined: 11 Nov 2005 Posts: 26093 Location: Texas, USA
raghavendrarao4 wrote:
It is as if only one connection to the queue manager from a single thread is allowed.
AFAIK (which is not that far with Java) that's the case.
I draw your attention to the Java section, where MQ & threading has been discussed frequently. You may find something in there which will allow you to work round this.
You may also want to reconsider calling external programs from inside a message flow, which is an interesting design choice..... _________________ Honesty is the best policy.
Insanity is the best defence.
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