如何在将消息发送到队列后向客户端发送响应?

huangapple go评论64阅读模式
英文:

WSO2/Rabbitmq. How to send response to client after sending message to queue?

问题

在将消息发送到队列后,是否可以向客户端发送同步响应?

<proxy name="VssService" startOnLoad="true" transports="http https" xmlns="http://ws.apache.org/ns/synapse">
    <target>
        <inSequence>
            <log description="记录请求" level="full"/>
            <property name="OUT_ONLY" scope="default" type="STRING" value="true"/>
            <property name="FORCE_SC_ACCEPTED" scope="axis2" type="STRING" value="true"/>
            <send>
               <endpoint key="VssEP"/>
            </send>   
        </inSequence>
        <outSequence/>
        <faultSequence/>
    </target>
</proxy>
英文:

Is it possible to send synchronous response to client after sending message to queue?

<proxy name="VssService" startOnLoad="true" transports="http https" xmlns="http://ws.apache.org/ns/synapse">
    <target>
        <inSequence>
            <log description="LOG REQUEST" level="full"/>
            <property name="OUT_ONLY" scope="default" type="STRING" value="true"/>
            <property name="FORCE_SC_ACCEPTED" scope="axis2" type="STRING" value="true"/>
            <send>
               <endpoint key="VssEP"/>
            </send>   
        </inSequence>
        <outSequence/>
        <faultSequence/>
    </target>
</proxy>

答案1

得分: 1

是的,你可以,在这种情况下,你将需要实现一个JMS双通道场景。查看这个这个

英文:

Yes you can, in this case, you will have to Implement a JMS Dual channel scenario. Take a look at this and this.

huangapple
  • 本文由 发表于 2023年6月16日 12:56:07
  • 转载请务必保留本文链接:https://go.coder-hub.com/76487054.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定