0

我正在使用以下代码通过我的 flex 程序在 MSMQ 中添加一条消息:

            producer = new Producer();
            producer.destination = "VendingMachineBack";
            var m:AsyncMessage = new AsyncMessage("",{'MSMQLabel':"VS-GetSaleTypes"}) ;
            producer.send(m);   

和我的 weborb messing-config.xml 如下:

<destination channels="weborb-rtmp" id="VendingMachineBack">
    <properties>
      <msmq>
        <path>.\private$\ClassicBackEndQueue</path>
        <deliverPastMessages>-1</deliverPastMessages>
        <BasePriority>0</BasePriority>
        <Category>00000000-0000-0000-0000-000000000000</Category>
        <MaximumQueueSize>4294967295</MaximumQueueSize>
        <UseJournalQueue>false</UseJournalQueue>
        <MaximumJournalSize>4294967295</MaximumJournalSize>         
      </msmq>
    <message-service-handler>Weborb.Messaging.PubSub.Msmq.MessagingServiceHandler</message-service-handler>
    </properties>
    <channels>
        <channel ref="weborb-rtmp"/>
    </channels>
</destination>  

问题是,如何在我发送的 AsyncMessage 中设置消息标签?

4

2 回答 2

0

我认为这份文件会对你有所帮助。看起来您完全缺少标签参考。

http://www.themidnightcoders.com/products/weborb-for-net/developer-den/technicalarticles/msmq-data-push.html

于 2011-04-14T22:30:53.493 回答
0

一段时间后我找到了解决方案!没有为什么要使用 webOrb 设置消息标签,所以我只是迁移到 FluorineFX:http ://www.fluorinefx.com/ 然后我做到了:http ://www.fluorinefx.com/docs/fluorine/messagingmsmq .html

于 2011-05-12T21:51:01.373 回答