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 » How to handle MQRC_Q_FULL

Post new topic  Reply to topic
 How to handle MQRC_Q_FULL « View previous topic :: View next topic » 
Author Message
mqbee
PostPosted: Sun Aug 17, 2003 4:30 am    Post subject: How to handle MQRC_Q_FULL Reply with quote

Novice

Joined: 31 Jul 2003
Posts: 15

While putting messages in a queue, am getting MQRC_Q_FULL error. This means queue is full, am i right? How to handle such a condition in java? I heard, we need to write message retry exits to handle such condition. Is it correct? If so, how to do it?
Thanks in advance.
Back to top
View user's profile Send private message
vmcgloin
PostPosted: Sun Aug 17, 2003 9:35 am    Post subject: Reply with quote

Knight

Joined: 04 Apr 2002
Posts: 560
Location: Scotland

Quote:
MQRC_Q_FULL
On an MQPUT or MQPUT1 call, the call failed because the queue is full, that is, it already contains the maximum number of messages possible.

Corrective action: Retry the operation later. Consider increasing the maximum depth for this queue, or arranging for more instances of the application to service the queue.


The best thing to do (in my opinion) is to increase the maximum depth for the queue and find out why the messages put there are not being processed. Also, have some sort of monitoring system in place so that an MQ administrator can do something about a queue filling up before your application gets an error.

If you feel the queue could be sorted soon then have your application retry after a period of time before giving up, otherwise the best thing might be to notify an admin of the error.

Cheers,
Vicky
Back to top
View user's profile Send private message
mqbee
PostPosted: Sun Aug 17, 2003 7:11 pm    Post subject: Thnkx Reply with quote

Novice

Joined: 31 Jul 2003
Posts: 15

Thnx Vicky.
Back to top
View user's profile Send private message
clindsey
PostPosted: Mon Aug 18, 2003 5:51 am    Post subject: Reply with quote

Knight

Joined: 12 Jul 2002
Posts: 586
Location: Dallas, Tx

I agree that Vicky has the right idea. Try to find out why a queue is filling up and prevent it.

But if you need a safety net, take a look at the "Event Monitoring" document in chapter 4. You can use event monitoring not only for a queue full condition but also for a high water mark. You can use this to kick off a program that can drain a few messages off the queue when it hits a certain depth or you can put a message to an admin queue, etc.

Charlie
Back to top
View user's profile Send private message
EddieA
PostPosted: Mon Aug 18, 2003 7:59 am    Post subject: Reply with quote

Jedi

Joined: 28 Jun 2001
Posts: 2453
Location: Los Angeles

If you do use the Event Messages for Queue High/Low/Full, then read the approriate manual VERY carefully indeed. Those Events do not work exactly how you expect them to.

Cheers,
_________________
Eddie Atherton
IBM Certified Solution Developer - WebSphere Message Broker V6.1
IBM Certified Solution Developer - WebSphere Message Broker V7.0
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 Java / JMS » How to handle MQRC_Q_FULL
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.