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
Objective: Demonstrate on CBR a message with binary payload
- Make sure the synapse-samples-1.0.jar is in your class path (by default this jar is placed in the lib directory when installing Synapse)
- Configure the JMS transport using ActiveMQ as described in Setting Up the ESB Samples.
- Create the above configuration and deploy it in the WSO2 EI profile, see Working with WSO2 Integration Studio.
- Start the sample Axis2 server and deploy the SimpleStockQuoteService.
In this configuration, a proxy has configured to accept incoming JMS messages. JMS messages contains a binary payload. User configure the offset, length, binary encoding of the text literal that it need to use for CBR. And a variable name to set the decoded value as a property. Configuration simply route the messages based on the text to different endpoints.
A JMS producer and two instances of a consumer used to demonstrate the CBR functionality.
Now run the first consumer using the following command.
Now run the second consumer using the following command.
So, now both consumers are ready to listen the topic. Run the market data producer to genenrate market data for symbol 'MSFT' using the following command.
Now run the market data producer to genenrate market data for symbol 'GOOG' using the following command.
You will see the below output in the client console(s) based on the symbol.