Author |
Message
|
dvishu78 |
Posted: Thu Jun 15, 2006 11:26 pm Post subject: capture ane remove meesages |
|
|
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 |
|
 |
Vitor |
Posted: Fri Jun 16, 2006 12:05 am Post subject: |
|
|
 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 |
|
 |
dvishu78 |
Posted: Sun Jun 18, 2006 8:07 pm Post subject: capture and remove meesages |
|
|
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 |
|
 |
Vitor |
Posted: Sun Jun 18, 2006 11:29 pm Post subject: Re: capture and remove meesages |
|
|
 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 |
|
 |
dvishu78 |
Posted: Mon Jun 19, 2006 12:35 am Post subject: Re: capture and remove meesages |
|
|
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 |
|
 |
Vitor |
Posted: Mon Jun 19, 2006 12:39 am Post subject: |
|
|
 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 |
|
 |
|