...
2. A message should appear in the command or text Linux console stating the server started successfully.
3. Deploy the back-end service 'SimpleStockQuoteService' and start the Axis2 server using the instructions given in section Starting Sample Back-End Services.
Now you have a running ESB instance and the back-end service deployed. In sample execution, we will send a message to the back-end service through the ESB.
Executing the Sample
1. The synapse configuration in the ESB related to used for message mediation in this sample is provided in <ESB_HOME>/repository/samples
/synapse_sample_0.xml
as shown below:
Code Block | ||
---|---|---|
| ||
<definitions xmlns="http://ws.apache.org/ns/synapse"> <sequence name="main"> <in> <!-- log all attributes of messages passing through --> <log level="full"/> <!-- Send the message to implicit destination --> <send/> </in> <out> <!-- log all attributes of messages passing through --> <log level="full"/> <!-- send the message back to the client --> <send/> </out> </sequence> </definitions> |
24. Deploy the back-end service 'SimpleStockQuoteService' and start the Axis2 server using the instructions given in section Starting Sample Back-End Services.
5. Now you have a running ESB instance and a back-end service deployed. In the nest section, we will send a message to the back-end service through the ESB using a sample client.
Executing the Sample
1. The sample client is used here is 'Stock Quote Client' which can operate in the following several modes for this example. For instructions on this sample client and its operation modes, refer to Stock Quote Client. Run each of the following ant command from <ESB_HOME>/samples/axis2Client
directory to trigger a sample message to the back-end service. If the message is mediated successfully, it should display an output on the Axis2 server's startup start-up console.
Smart Client Mode
...