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 distinguish QueueFull exception

Post new topic  Reply to topic
 how to distinguish QueueFull exception « View previous topic :: View next topic » 
Author Message
joecherian
PostPosted: Sat Dec 21, 2002 2:57 am    Post subject: how to distinguish QueueFull exception Reply with quote

Novice

Joined: 15 Dec 2002
Posts: 23
Location: India

Hello
i have a queue whose capacity is 100 messages. Now if i try to put the 101 th mesage, it will throw JMSException.IS there any way to know that this JMSException was due to queue full condition ? bcos all error situations give JMSException.so how can i check in my program that the error occurred due to Queue full case and not by some other reasons ?
Thanks
Joe
Back to top
View user's profile Send private message Send e-mail Visit poster's website Yahoo Messenger
clindsey
PostPosted: Sat Dec 21, 2002 7:28 am    Post subject: Reply with quote

Knight

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

The transport exception information is imbedded in the jms exception.
You can get the embedded mq exception detail with getLinkedException(),
e.g. Exception le = je.getLinkedException() and then check le.reasonCode

Charlie
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 distinguish QueueFull exception
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.