[DUG] Need Help In MSMQ queue based application

David delphi at 275a.com
Thu Nov 26 07:41:30 NZDT 2009


You may want to check your process flow
I suspect you are doing something like this :-

Taking the message from queue
Processing it in the Delpih 6 app
  App has an error, and does not remove the item from the queue, but 
does not "un-process" it from delphi end either
.. idle
Taking same message from queue
Processing it in the Delpih 6 app
App succeeds
Message removed from queue

Check that you have a "Try... finally block" or dimilar process flow in 
your delphi 6 app to cater for this scenario
and if the error is happening in the delphi 6 app, you may want to dump 
the MQ message to file for later review/retry, but still remove it from 
the MQ

David

Vikas... wrote:
> Hi everyone,
>
> I need some assistance here related to MSMQ based application.
>
> Basically we have an application written in Delphi 6 which reads the 
> message written in MSMQ queue by other application.
>
> So usually this Delphi based application picks up the message from 
> queue and process it along with removing the message from the queue so 
> that it dint get processed again.
>
> But lately client complained the message processed twice that means 
> the message dint removed form the queue in the first time.
>
> This is really strange it happened once and client fear it can happen 
> again.
>
> Anyone experienced such issue before?. It be great if someone can 
> share their ideas on it.
>
> Kind regards
> Vik
> ------------------------------------------------------------------------
>
> _______________________________________________
> NZ Borland Developers Group - Delphi mailing list
> Post: delphi at delphi.org.nz
> Admin: http://delphi.org.nz/mailman/listinfo/delphi
> Unsubscribe: send an email to delphi-request at delphi.org.nz with Subject: unsubscribe
>
>
> __________ Information from ESET Smart Security, version of virus signature database 4628 (20091122) __________
>
> The message was checked by ESET Smart Security.
>
> http://www.eset.com
>
>   



__________ Information from ESET Smart Security, version of virus signature database 4636 (20091125) __________

The message was checked by ESET Smart Security.

http://www.eset.com




More information about the Delphi mailing list