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 » To Delete message on the message queue using java

Post new topic  Reply to topic
 To Delete message on the message queue using java « View previous topic :: View next topic » 
Author Message
kartkris
PostPosted: Sun Apr 21, 2002 9:15 pm    Post subject: Reply with quote

Newbie

Joined: 20 Apr 2002
Posts: 3

I got many messages in local queue.I don't want to clear all the messages on one shot.So..i am writing a java program.,which would select the particular message & delete it from the message queue.
Is there any predefined method to delete message based on the parameter we pass.

Do anyone know what will "removeElementAt()" method does?.

Back to top
View user's profile Send private message
vedbhat
PostPosted: Sun Apr 21, 2002 11:04 pm    Post subject: Reply with quote

Disciple

Joined: 19 Mar 2002
Posts: 186
Location: Singapore

Hi,

If the messages in the Queues has priority, you can just get those messages out.

Regards
Ved
Back to top
View user's profile Send private message Send e-mail Visit poster's website MSN Messenger
bduncan
PostPosted: Mon Apr 22, 2002 12:13 pm    Post subject: Reply with quote

Padawan

Joined: 11 Apr 2001
Posts: 1554
Location: Silicon Valley

"Is there any predefined method to delete message based on the parameter we pass."

-Yes, it's called doing an MQGET
An MQGET will effectively delete a particular message from the queue if you specify some uniquely identifying set of parameters (usually just message id or correl id). The MQGET will remove this message from the queue, and then you're free to dereference the message object and let java garbage collect it for you.

_________________
Brandon Duncan
IBM Certified MQSeries Specialist
MQSeries.net forum moderator
Back to top
View user's profile Send private message Visit poster's website AIM Address
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » IBM MQ Java / JMS » To Delete message on the message queue using 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.