我有一個mule流,它接受一個xml並將它發佈到一個vm隊列名稱中作爲mule中的「mailQueue」。 XML輸入和騾子流量低於:從Mule的vm隊列發佈到REST端點
<Mail>
<Name>JonHender</Name>
<Age>16</Age>
</Mail>
Mule_config.xml:
<!-- This is the persistent VM connector -->
<vm:connector name="mailQueueConnector" queueTimeout="1000">
<vm:queue-profile>
<file-queue-store />
</vm:queue-profile>
</vm:connector>
<flow name="MailService">
<https:inbound-endpoint address="https://localhost:71234/message/email"
method="POST"
exchange-pattern="request-response"
contentType="application/xml"/>
<vm:outbound-endpoint path="mailQueue" connector-ref="mailQueueConnector">
<message-property-filter pattern="http.status=200" />
<logger message="INTO mailQueue" level="INFO"/>
</vm:outbound-endpoint>
</flow>
現在,我必須從這個 「mailQueue」 閱讀和張貼到REST終點( HTTPS://本地主機:71234 /消息/ sendemail)。我試圖通過在相同的流量增加這一點,但沒有奏效
<inbound>
<vm:inbound-endpoint address="vm://emailBufferQueue" exchange-pattern="one-way" connector-ref="emailQueueConnector" />
</inbound>
<outbound>
<https:outbound-endpoint address="https://localhost:71234/messages/sendemail"
</outbound>
如何從虛擬機隊列中讀取並張貼到REST終點?我可以在iam寫入隊列的同一個流程中完成它,還是應該創建一個新的流程?有人可以讓我看看流程,並將其發送到Rest端點嗎?
先感謝和聖誕快樂你們都
嘿大衛......我不是完全地熟悉這個論壇的規則。這是我的不好,下次會記住它。感謝您指出這一點 – user1717230