Posted: Sat Dec 21, 2002 2:57 am Post subject: how to distinguish QueueFull exception
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
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
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