I've done this kind of job by using pure java code or Talend ETL open studio.
This time I am trying to using WSO2 ESB server and ActiveMQ server to finish the job.
1. Install ESB and ActiveMQ
I need to install WSO2 ESB server and ActiveMQ server in my local machine,
These are the version I installed in my local.
2. ESB/ActiveMQ configuration
1) Copy relevant JMS client libraries to WSO2 ESB.
For Apache ActiveMQ, copy
[ActiveMQ_HOME]/lib/
activemq-broker-5.8.0
activemq-client-5.8.0,
geronimo-j2ee-management_1.1_spec-1.0.1.jar and
geronimo-jms_1.1_spec-1.1.1.jar
hawtbuf-1.9
to
[WSO2 ESB HOME]/repository/components/lib
2) To enable JMS queues, define JNDI in [WSO2 ESB Home]\repository\conf\jndi.properties
connectionfactory.QueueConnectionFactory = amqp://admin:admin@clientID/test?brokerlist='tcp://localhost:61616'
3) Enable JMS Receiver
Edit Axis2 configuration file ([ESB Home] \repository\conf\axis2\axis2.xml
Uncomment <transportReceiver> section under “<!--Uncomment this and configure as appropriate for JMS transport support, after setting up your JMS environment (e.g. ActiveMQ) -->”
4) Enable JMS Sender
<!-- uncomment this and configure to use connection pools for sending messages> -->
<transportSender name="jms" class="org.apache.axis2.transport.jms.JMSSender"/>
3. Start server to verify
Go to [wso2esbhome]\bin directory
run wso2server.bat
Go to [activemq home]\bin
run activemq.bat
Then I can go to console to verify if the servers are on.
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
The user name and password for both servers are admin/admin.
If everything is correct, we can land on the following web console page.
No comments:
Post a Comment