I've installed WSO2 and ActiveMQ in the past two blogs.
Setup WSO2 ESB server and ActiveMQ server (Part 1) - Installation
Setup WSO2 ESB server and ActiveMQ server (Part 2)
The WSO2 ESB server - Console URL is https://localhost:9443/carbon/admin/login.jsp
ActiveMQ server - Console URL is http://localhost:8161/admin/queues.jsp
1. Create a new JMS proxy service. (The same way as in part 2)
2. Replace the source with the following xml doc.
<?xml version="1.0" encoding="UTF-8"?>
<proxy xmlns="http://ws.apache.org/ns/synapse"
name="echoJmsProxy"
transports="https,http"
statistics="disable"
trace="disable"
startOnLoad="true">
<target>
<endpoint>
<address uri="jms:/EchoQueue?transport.jms.ConnectionFactoryJNDIName=QueueConnectionFactory&
java.naming.factory.initial=org.apache.activemq.jndi.ActiveMQInitialContextFactory&
java.naming.provider.url=tcp://localhost:61616"/>
</endpoint>
</target>
<publishWSDL uri="http://localhost:9763/services/echo?wsdl"/>
<parameter name="OUT_ONLY">true</parameter>
<parameter name="FORCE_SC_ACCEPTED">true</parameter>
<description/>
</proxy>
<?xml version="1.0" encoding="UTF-8"?>
<proxy xmlns="http://ws.apache.org/ns/synapse"
name="echoJmsProxy"
transports="https,http"
statistics="disable"
trace="disable"
startOnLoad="true">
<target>
<endpoint>
<address uri="jms:/EchoQueue?transport.jms.ConnectionFactoryJNDIName=QueueConnectionFactory&
java.naming.factory.initial=org.apache.activemq.jndi.ActiveMQInitialContextFactory&
java.naming.provider.url=tcp://localhost:61616"/>
</endpoint>
</target>
<publishWSDL uri="http://localhost:9763/services/echo?wsdl"/>
<parameter name="OUT_ONLY">true</parameter>
<parameter name="FORCE_SC_ACCEPTED">true</parameter>
<description/>
</proxy>
3. Click Try this service.
Modify the attribute and click send.
4. Now login to ActiveMQ. We can see there is a message in the queue.
It verified the WSO2 ESB and ActiveMQ connected successfully.
No comments:
Post a Comment