MSMQ MessageLabel

Home Page Forums BizTalk 2004 – BizTalk 2010 MSMQ MessageLabel

Viewing 1 reply thread
  • Author
    • #13435

      Hey guys,
      I have an orchestration with a receive port that is bound to an MSMQ. Is there a way I can read the message label attached to the message that is in the queue that is in the orchestration? Please let me know.


    • #13436

      Thanks. That is working

      • #13437

        You should be able to access it from the MSMQ.Label context property of the message you received. For example, on an Expression Shape:

        label = MyMessage(MSMQ.Label);

        Notice you’ll need to reference the MSMQ adapter property schemas assembly, otherwise the MSMQ adapter properties won’t appear available.

        (If you are using MSMQT and not the MSMQ adapter, then the right property is MSMQT.Label)

        Finally, if you want to do filtering or context-based routing based on the MSMQ label, then you need to be aware that while this property is added to the received message context, it is not promoted, so you’ll need to use a custom pipeline component on the receive pipeline to promote it so that you can do routing based on it. I’ve got an example of such a component on my site:

Viewing 1 reply thread
  • The forum ‘BizTalk 2004 – BizTalk 2010’ is closed to new topics and replies.