Insert excerpt |
---|
| ESB Profile Samples |
---|
| ESB Profile Samples |
---|
nopanel | true |
---|
|
Objective: Demonstrate switching from HTTP to JMS.
...
- Download, install and start a JMS server.
- Configure sample Axis2 server for JMS.
- Start the Axis2 server and deploy the
SimpleStockQuoteService
. - Configure the Synase JMS transport.
- Start the Synapse configuration numbered 251:
wso2esb-samples.sh -sn 251
Code Block |
---|
language | html/xml |
---|
linenumbers | true |
---|
|
<definitions xmlns="http://ws.apache.org/ns/synapse">
<proxy name="StockQuoteProxy" transports="http">
<target>
<endpoint>
<address uri="jms:/SimpleStockQuoteService?transport.jms.ConnectionFactoryJNDIName=QueueConnectionFactory&
java.naming.factory.initial=org.apache.activemq.jndi.ActiveMQInitialContextFactory&java.naming.provider.url=tcp://localhost:61616"/>
</endpoint>
<inSequence>
<property action="set" name="OUT_ONLY" value="true"/>
</inSequence>
<outSequence>
<send/>
</outSequence>
</target>
<publishWSDL uri="file:samples/service-bus/resources/proxy/sample_proxy_1.wsdl"/>
</proxy>
</definitions>
|
...