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 » capture ane remove meesages

Post new topic  Reply to topic
 capture ane remove meesages « View previous topic :: View next topic » 
Author Message
dvishu78
PostPosted: Thu Jun 15, 2006 11:26 pm    Post subject: capture ane remove meesages Reply with quote

Novice

Joined: 15 Jun 2006
Posts: 20
Location: INDIA

HI All,

In my application we are using Mq queue for submmiting data in the form of a stringrecognisedby the backend MVSDB,The user inputs all the data regarding the invoice and submit for "Account code validation".While submitting , PUTS the string in to MQ and then wait for the output message from the queue. This output message connects to the input message response via a correlation id.
Once the output message is ready within the stipulated time frame , the message is read by our application and subseqnet action is taken.
If the message doesn't arrive in the stipulated time,then it thows an appropraite error
once the message is read then the queue should remain blank. But we are seeing the messages in the queue.
As iam very much new to Mq series can any one advice how to capture and remove this messages from queue
Back to top
View user's profile Send private message Send e-mail
Vitor
PostPosted: Fri Jun 16, 2006 12:05 am    Post subject: Reply with quote

Grand High Poobah

Joined: 11 Nov 2005
Posts: 26093
Location: Texas, USA

If the messages in the queue are the ones that have been "read" and processed by the application, check the application logic and coding - there's a bug.

If the messages are the ones that didn't turn up within the stipulated time, do a search on "expiry" within this forum & the Application Programming documentation.

You have fun now.
_________________
Honesty is the best policy.
Insanity is the best defence.
Back to top
View user's profile Send private message
dvishu78
PostPosted: Sun Jun 18, 2006 8:07 pm    Post subject: capture and remove meesages Reply with quote

Novice

Joined: 15 Jun 2006
Posts: 20
Location: INDIA

HI Vitor,

thanks for your reply, but as my methods are returning only Boolean value. In the "OUTPUT Queue" we have a boolean value and date timestamp are stored so i think we cant judge wheater they are read by my application or not any way we feel that messages are stale and would like to remove them from the Queue.

Can you please refer me API to be used to How to capture those message and remove them.
Back to top
View user's profile Send private message Send e-mail
Vitor
PostPosted: Sun Jun 18, 2006 11:29 pm    Post subject: Re: capture and remove meesages Reply with quote

Grand High Poobah

Joined: 11 Nov 2005
Posts: 26093
Location: Texas, USA

dvishu78 wrote:
HI Vitor,

thanks for your reply, but as my methods are returning only Boolean value. In the "OUTPUT Queue" we have a boolean value and date timestamp are stored so i think we cant judge wheater they are read by my application or not any way we feel that messages are stale and would like to remove them from the Queue.

Can you please refer me API to be used to How to capture those message and remove them.


Your methods are doing a get from a queue and returning a Boolean??

I thought you said you were processing messages got from a queue via correlation id?
_________________
Honesty is the best policy.
Insanity is the best defence.
Back to top
View user's profile Send private message
dvishu78
PostPosted: Mon Jun 19, 2006 12:35 am    Post subject: Re: capture and remove meesages Reply with quote

Novice

Joined: 15 Jun 2006
Posts: 20
Location: INDIA

Hi vitor,

i have two methods one is for just performing validation at MVSDB side which is public boolean validateAcctCode(String acMessage, int failCounter) throws Exception

The other method submits the string data to MVSDB for processing
public boolean sendBillingToMVSDB(String msgToSend, String refNo, Connection conn, boolean fromTemplate)
Back to top
View user's profile Send private message Send e-mail
Vitor
PostPosted: Mon Jun 19, 2006 12:39 am    Post subject: Reply with quote

Grand High Poobah

Joined: 11 Nov 2005
Posts: 26093
Location: Texas, USA

Yes, but how does valiadteAcctCode obtain the string acMessage (which I assume to be the message body)?

Have you at any point referred to the Application Programming Guide or any other point of reference?
_________________
Honesty is the best policy.
Insanity is the best defence.
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 » capture ane remove meesages
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.