Friday 15 January 2010

What happens when an MSMQ transaction isn't commited/aborted? -



What happens when an MSMQ transaction isn't commited/aborted? -

say have transactional queue.

var msgq = messagequeue.create(@".\$private\orders", true) msgq.defaultpropertiestosend.recoverable = true;

now go consume message off queue...

var msgtx = new messagequeuetransaction(); msgtx.begin(); var msg = msgq.receive(msgtx)

... and machine goes downwards before commit or abort can take place.

what happens message tried receive?

as stated in the documentation receive:

because method called on transactional queue, message received returned queue if transaction aborted. message not permanently removed queue until transaction committed.

transactions msmq

No comments:

Post a Comment