Skip to content

Instantly share code, notes, and snippets.

@chilcano
Created July 5, 2015 23:39
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save chilcano/4b51ef6b4421328ccc9f to your computer and use it in GitHub Desktop.
Save chilcano/4b51ef6b4421328ccc9f to your computer and use it in GitHub Desktop.
wso2esb-rabbitmq-message-store readme
How to check the sourcecode and configuration
---------------------------------------------
Follow the next commands:
$ mkdir wso2esb-rabbitmq-message-store
$ cd wso2esb-rabbitmq-message-store
$ git pull https://github.com/Chilcano/wso2esb-rabbitmq-message-store.git
$ mvn clean install
$ mvn exec:java -Dexec.mainClass="com.chakray.chilcano.wso2.rabbitmq.sample.HelloRabbitMQ"
The com.chakray.chilcano.wso2.rabbitmq.sample.HelloRabbitMQ is a simple JMS client that publish and consume a message to/from RabbitMQ. This sample uses Apache Qpid client library, does not use RabbitMQ client libraries. To execute properly you should update the hello_rabbitmq_jndi.properties with your values.
How to deploy on WSO2 ESB
-------------------------
* Deploy the libraries:
- Copy hello_rabbitmq_jndi.properties, qpid-client-0.30.jar, qpid-common-0.30.jar, wso2esb-rabbitmq-msmp-0.1.jar to %WSO2ESB_HOME%/repository/components/lib/ folder.
- Restart WSO2 ESB.
* Deploy the Synapse files for the Message Store and API samples:
- In RabbitMQ side you need to create a queue and 2 routing keys. I recommend you use the hello_rabbitmq_config_broker.json and import it from the RabbitMQ web admin console.
- Copy HelloRabbitMQMsgStore1.xml into %WSO2ESB_HOME%/repository/deployment/server/synapse-configs/default/message-stores/
- Copy HelloRabbitMQRest1.xml into %WSO2ESB_HOME%/repository/deployment/server/synapse-configs/default/api/
WSO2 ESB automatically will deploy these 2 synapse files and after that you are ready to send a message to WSO2 ESB and store this message in RabbitMQ side.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment