Posted: Sun Aug 08, 2004 5:00 pm Post subject: Message Remains on the queue
Newbie
Joined: 29 Jul 2004 Posts: 6
Hi All,
I wrote a listner app in .NET C#. Once I open the queue it would not close. It waits for the messages and as soon as message comes it processes the message and again waits for message. If for some reason If I stop the application all ready read messages are still in the queue. My application is reading those messages again. Is there any way I can delete the messages from queue as soon as I get them.
Shall I need to close the queue after reading message to delete it? If I do that I have to open the queue again and again. Am I missing anything or is there are any workaround.
If you're using transactions and you don't commit, the messages may get backed out when your application ends.
Have a look at the backout count of the messages in MQExplorer to see whether the transaction is being rolled back. _________________ Regards
John
The pain of low quaility far outlasts the joy of low price.
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