Note that WSO2 EI is shipped with the following changes to what is mentioned in this documentation :
repository/samples/directory that includes all Integration profile samples is changed to
repository/samples/resources/directory that includes all artifacts related to the Integration profile samples is changed to
This sample demonstrates how one way message bridging from RabbitMQ to HTTP can be done using the inbound RabbitMQ endpoint.
Building the sample
The XML configuration for this sample is as follows:
This configuration file
synapse_sample_907.xml is available in the
To build the sample
Start the ESB with the sample 907 configuration. For instructions on starting a sample ESB configuration, see Starting the ESB with a sample configuration.
The operation log keeps running until the server starts, which usually takes several seconds. Wait until the server has fully booted up and displays a message similar to "WSO2 Carbon started in n seconds."
Executing the sample
Use the following Java client to publish a request to the RabbitMQ broker.
Analyzing the output
You will see the following Message content:
The RabbitMQ inbound endpoint gets the messages from the RabbitMQ broker and logs the messages in the ESB.