Hi  udayanga,

Thanks! it works!

在 2011年12月28日 下午1:49,udayanga <[email protected]>写道:

>
> Hi,
>
> Hi all,
> I have a proxy which send the soap message to a ActiveMQ queue, my config
> is below:
>          <?xml version="1.0" encoding="UTF-8"?>
> <proxy xmlns="http://ws.apache.org/ns/synapse"; name="INMessageService"
> transports="http" startOnLoad="true" trace="disable">
>    <target>
>        <inSequence>
>            <log level="full"/>
>            <property name="OUT_ONLY" value="true" scope="default"/>
>            <clone>
>                <target>
>                    <endpoint>
>                        <address
>
> uri="jms:/OMS?transport.jms.ConnectionFactoryJNDIName=QueueConnectionFactory&amp;java.naming.factory.initial=org.apache.activemq.jndi.ActiveMQInitialContextFactory&amp;java.naming.provider.url=tcp://
> 172.20.41.149:61616
> &amp;transport.jms.DestinationType=queue"/>
>                    </endpoint>
>                </target>
>            </clone>
>        </inSequence>
>    </target>
>    <publishWSDL key="gov:/services/FileService.wsdl">
>        <resource location="Message.xsd" key="gov:/services/Message.xsd"/>
>    </publishWSDL>
> </proxy>
>
> And now we need send the message to failover endpoints, and I checked the
> ActiveMQ document here(
> http://activemq.apache.org/failover-transport-reference.html).
>
> I tried two kinds of URI:
> failover://(tcp://172.20.41.149:61616,tcp://172.20.41.40:61616
> )?initialReconnectDelay=100
> failover:(tcp://172.20.41.149:61616,tcp://172.20.41.40:61616
> )?initialReconnectDelay=100
>
> To enable native failover capability ,you need to confgiure this in the the
> endpoint configuration (parameter section) of ESB. You can use a
> configuration as the following
>
> <send>
>                <endpoint>
>                <address
>
>
> uri="jms:/OMS?transport.jms.ConnectionFactoryJNDIName=QueueConnectionFactory&amp;java.naming.factory.initial=org.apache.activemq.jndi.ActiveMQInitialContextFactory&amp;java.naming.provider.url=failover:(tcp://localhost:61616,tcp://192.168.1.2:61616
> )?randomize=false&amp;transport.jms.DestinationType=queue"/>
>                </endpoint>
>            </send>
>
> Please note that i have now changed the  java.naming.provider.url to a
> failover configuration with two failover nodes pointing to primary and
> secondary ..
> Regards,
> udayanga
> --
> View this message in context:
> http://old.nabble.com/How-to-set-a-JMS-failover-endpoint-tp33040240p33044417.html
> Sent from the WSO2 ESB Users mailing list archive at Nabble.com.
>
> _______________________________________________
> Esb-java-user mailing list
> [email protected]
> https://mail.wso2.org/cgi-bin/mailman/listinfo/esb-java-user
>



-- 
带着你现有的记忆和理解,去成为之前的自己。
博客:RocWing's Blog <http://www.rocwing.com>
_______________________________________________
Esb-java-user mailing list
[email protected]
https://mail.wso2.org/cgi-bin/mailman/listinfo/esb-java-user

Reply via email to