简体   繁体   English

WSO2 ESB4.9.0中的JMS事务回滚

[英]JMS transaction roll back in WSO2 ESB4.9.0

I've created a JMS listener as below. 我创建了一个JMS侦听器,如下所示。 Everything is working fine as the listener is able to receive the messages from Q. But when my end point is down due to some reasons the message is not roll backing to Q. Would like to know the jms transaction boundary & will I be able to roll back transactoion if my end point fails. 由于侦听器能够从Q接收消息,所以一切正常,但是当我的端点由于某种原因而关闭时,消息不会回滚到Q。我想知道jms事务边界,我将能够如果我的终点失败了,请转回转位。 Currently it's not happening, anything I am missing here 目前还没有发生,我在这里缺少的任何东西

<?xml version="1.0" encoding="UTF-8"?>
<proxy xmlns="http://ws.apache.org/ns/synapse"
       name="TestJMSListener"
       transports="jmslistener1,jmslistener2"
       statistics="disable"
       trace="disable"
       startOnLoad="true">
   <target>
      <inSequence>
         <call>
            <endpoint key="StoreJMSMSg"/>
         </call>
      </inSequence>
      <faultSequence>
         <property name="SET_ROLLBACK_ONLY" value="true" scope="axis2"/>
      </faultSequence>
   </target>
   <parameter name="transport.jms.ContentType">application/xml</parameter>
   <parameter name="transport.jms.Destination">TestQueue</parameter>
   <description/>
</proxy>

您是否还在axis2.xml中设置了以下内容?

<parameter name="transport.jms.SessionTransacted">true</parameter>

The Guaranteed Delivery EIP ensures safe delivery of a message by storing it locally and transmitting it to the receiver's data store. 保证传递EIP通过将消息存储在本地并将其传输到接收者的数据存储区来确保消息的安全传递。 Even when the receiver is offline, the EIP ensures that the message goes through when the receiver comes online. 即使接收方处于脱机状态,EIP仍可确保接收方联机时消息通过。

Using message stores and message processors you can overcome this. 使用消息存储库和消息处理器,您可以克服这一问题。 Please refer the link . 请参考链接

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM