Discussion Locked

MSMQ with VB problem

0 helpful
1 reply
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.

We have a COM+ Application residing on a Win2k server that has queueing enabled. When I call the component from my app using MSMQ everything is cool AS LONG AS no errors occur in the method invoked. If there are any errors that occur in the method, even though the On Error GoTo picks it up, the call is repeated several times. For example, the method is Print. You call Print, and it Prints. But if it encounters an error in updating one of the records, MSMQ keeps retrying the method call, therefore printing several copies (it never ends up stopping). I have tried using On Error Resume Next with no luck. It is completing the transaction at the end of the method (it is not calling SetAbort, it is definitely SetComplete).

How can I stop MSMQ from retrying? Or any other solution...

1 reply

by davidwaddleton

Check the Message Queue to see if the it using trasactions or not. It sounds like the MSMQ queue is setup as transactional. See that that makes a difference.

David Waddleton

This discussion is closed to new replies.