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 » Queue Cleanup using MQ Java

Post new topic  Reply to topic
 Queue Cleanup using MQ Java « View previous topic :: View next topic » 
Author Message
zhaobin
PostPosted: Mon Nov 11, 2002 12:08 am    Post subject: Queue Cleanup using MQ Java Reply with quote

Novice

Joined: 29 Oct 2002
Posts: 20

Hi,

I posted the "NullPointerException from MQ Java". It seems currently no one knows what the fix for it. I have contacted IBM for this issue.

Meanwhile, I am thinking of a workaround of the problem. Since the NullPointerException is thrown by receiveNoWait(), I plan to catch the exception and remove the message from the queue (Otherwise all subsequent receiveNoWait will all throw NullPointerException until I clean up the queue). Is there any API from MQ Java to clean messages from the queue? I searched the "MQSeries Using Java" document but didn't manage to find any. Anyone knows how to do it?

If this cannot be done via Java API, is there any MQSeries tools allow to remove a particular message? The "Clear Message" provided by the MQSeries Explorer removes all messages in the queue. But I just want to remove the particular corrupted message from the queue.

thanks
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 » Queue Cleanup using MQ Java
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.