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 Java / JMS » JMS/MQ ResourceAllocationException

Post new topic  Reply to topic
 JMS/MQ ResourceAllocationException « View previous topic :: View next topic » 
Author Message
davidd79
PostPosted: Tue Sep 07, 2004 12:44 am    Post subject: JMS/MQ ResourceAllocationException Reply with quote

Newbie

Joined: 07 Sep 2004
Posts: 1

Hi,

I have a simple request reply process in place, but am experiencing the following error,

Failed to write to reply queue queue://Q2LIVHA2
F1/WMQ01.0000.DMS01: MQJMS2008: failed to open MQ queue
javax.jms.ResourceAllocationException: MQJMS2008: failed to open MQ queue

It our tester is run, it works fine for the first 30 mins or so and then we fail to open the reply queue due to the above error. Does anyone know the cause of this error? Is it too many open connections??

I have checked the code and we lazy instantiate the reply queue, so we should reuse the same queue and not open a new one. We also resue the same JMSSession.

/**
* Lazy instantiated (thread safe) accessor for the JMS error queue
*
* @return Queue
*
*/
public synchronized Queue getJMSReplyQueue() throws JMSException, CorrespondenceException
{
if (m_replyQueue == null)
{
String queueURL = "queue://" + getMqProperties().get("queueManager") + "/" + getMqProperties().get("outputQueue");
m_replyQueue = getJMSSession().createQueue(queueURL);
}
return m_replyQueue;
}
Back to top
View user's profile Send private message MSN Messenger
jefflowrey
PostPosted: Tue Sep 07, 2004 5:16 am    Post subject: Reply with quote

Grand Poobah

Joined: 16 Oct 2002
Posts: 19981

Look in your system logs.

Also, please catch the Linked Exception, which will contain the MQ reason and completion codes that will tell you what the real problem is.
_________________
I am *not* the model of the modern major general.
Back to top
View user's profile Send private message
vennela
PostPosted: Tue Sep 07, 2004 6:18 am    Post subject: Reply with quote

Jedi Knight

Joined: 11 Aug 2002
Posts: 4055
Location: Hyderabad, India

I guess your queue name is not formed right.

It should be queue:///Q2LIVHA2 or

queue://<QueueManagerName>/Q2LIVHA2
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » IBM MQ Java / JMS » JMS/MQ ResourceAllocationException
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.