Over a million developers have joined DZone.

Route Traffic Using WSO2 ESB - Route to a JSP

Build APIs from SQL and NoSQL or Salesforce data sources in seconds. Read the Creating REST APIs white paper, brought to you in partnership with CA Technologies.

This blog post provides a basic sample of the $subject.

This can be done with message relay.

Enabling message relay can be done using axis2.xml (repository/conf/axis2.xml). "Message Builders" section and "Message Formatters" section should be modified in order to enable message relay.(enable message relay for the necessary content types).

Use the following configuration in the main sequence.
<sequence xmlns="http://ws.apache.org/ns/synapse" name="main">
   <in>
      <log level="full" />
      <send>
         <endpoint>
            <address uri="http://localhost:8080" />
         </endpoint>
      </send>
   </in>
   <out>
      <send />
   </out>
   <description>The main sequence for the message mediation</description>
</sequence>


<module ref="relay"/> is also used in the axis2.xml. (line 501) 

The Integration Zone is brought to you in partnership with CA Technologies.  Use CA Live API Creator to quickly create complete application backends, with secure APIs and robust application logic, in an easy to use interface.

Topics:

Published at DZone with permission of Achala Chathuranga Aponso, DZone MVB. See the original article here.

Opinions expressed by DZone contributors are their own.

The best of DZone straight to your inbox.

SEE AN EXAMPLE
Please provide a valid email address.

Thanks for subscribing!

Awesome! Check your inbox to verify your email so you can start receiving the latest in tech news and resources.
Subscribe

{{ parent.title || parent.header.title}}

{{ parent.tldr }}

{{ parent.urlSource.name }}