Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. .NET (Core and Framework)
  4. Advice: Transaction Processing using MSMQ

Advice: Transaction Processing using MSMQ

Scheduled Pinned Locked Moved .NET (Core and Framework)
databasedata-structuresxml
1 Posts 1 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • D Offline
    D Offline
    DotNetJoe
    wrote on last edited by
    #1

    Hi I am currently working on a solution for the asynchronous processing of xml messages. The solution broadly works as follows: 1. Xml Messages are passed to me via a Web Service (volumes of around a few 100 per day). 2. The Web service posts each Xml message onto a private message Queue (MSMQ). 3. A 'listening' / 'polling' windoes service retrieves messages from the message queue and routes them for onward processing (this could be transforming / appending the XML before passing to an external web service) or simply saving the message in a local DB). My query surrounds the most appropriate approach for dealing with failures during the processing stage. Ideally I'd like any messages that fail due to particular handled errors ( web service unavaible ect) to be returned to the message queue and retried later, but having read a little regarding transactions I am unsure as to the most effecticent and appropriate mechansism for carrying this out. I could just programatically add the item backl to the top of the queue, or wrap the processing code in a DTS transaction. I can see that MSMQ supports its own transactions too, but all the examples seem to relate to wrapping the "send" in a transaction rather than dealing with an item taken from the queue. if anyone has some relevant experience that they can bring to bear on this, I would be v grateful. cheers

    1 Reply Last reply
    0
    Reply
    • Reply as topic
    Log in to reply
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes


    • Login

    • Don't have an account? Register

    • Login or register to search.
    • First post
      Last post
    0
    • Categories
    • Recent
    • Tags
    • Popular
    • World
    • Users
    • Groups