使用活动MQ和WSO2 EI保证传递消息

时间:2017-09-28 10:48:02

标签: wso2

问题:我有一个仅使用XML消息的代理服务,但有时如果我们收到格式不正确的XML消息,只是语法错误,我们的代理应该将该消息发送到不同的队列,消息不应该丢失。

i have followed the below link but unable to get the expected output
https://www.yenlo.com/blog/guaranteed-message-deliveries-part-3-monitoring-the-redelivery-policy

 Below  is my proxy:
 <?xml version="1.0" encoding="UTF-8"?>
<proxy name="RollbackProxy" startOnLoad="true" transports="jms" xmlns="http://ws.apache.org/ns/synapse">
    <target>
        <inSequence>
           <log description="" level="full">
                <property name="****************" value="******************************"/>
            </log>
        </inSequence>
        <outSequence/>
        <faultSequence>
            <property name="SET_ROLLBACK_ONLY" scope="axis2" type="STRING" value="true"/>
            <log category="ERROR" level="full">
                <property expression="$ctx:ERROR_CODE" name="error_code"/>
                <property expression="$ctx:ERROR_MESSAGE" name="error_message"/>
                <property expression="$ctx:ERROR_DETAIL" name="error_detail"/>
            </log>
        </faultSequence>
    </target>
    <parameter name="transport.jms.Destination">QueueName</parameter>
    <parameter name="transport.jms.ContentType">
        <rules xmlns="">
            <jmsProperty>contentType</jmsProperty>
            <default>application/xml</default>
        </rules>
    </parameter>
    <parameter name="transport.jms.ConnectionFactory">myQueueConnectionFactory</parameter>
</proxy>


axis2.xml and activemq.xml i have  properly updated.
we are using active MQ.
Can somebody guide me on this?
Thanks in Advance

0 个答案:

没有答案