我遇到了一个问题,尝试将从自定义REST端点返回的消息转发到JMS队列。
我想实现类似的东西:
WSO2正在检索此消息,一旦有消息,它就会在自定义REST服务旁边推送此消息:
我已将接收定义为 testResponse 发送部分,我可以从记录回复 testResponse 内的REST API 。
现在我卡住了,因为我试图以某种方式推动来自 REST API 的响应,接下来说第二个JMS队列,名为 testQueue2 。
我已经尝试在自定义序列(称为 testReponse )中使用调用标记,但它根本就没有执行(我我还尝试过测试,只是为了执行第二个REST API,只是确定,如果它不是JMS本身的执行......):
任何想法,我如何将响应从被叫 REST API 转移到JMS队列?
感谢。
<proxy name="testQueue" startOnLoad="true" transports="jms">
<target>
<inSequence>
<send receive="testResponse">
<endpoint>
<http format="rest" method="POST" uri-template="http://localhost/customRestAPI?message=test" />
</endpoint>
</send>
</inSequence>
<outSequence />
</target>
</proxy>
<sequence name="testResponse">
<log level="full" />
</sequence>