Enterprise Integration Zone is brought to you in partnership with:

I am a graduate of University of Westminster UK (IIT) B Sc Software Engineering ( First Class Honours). I am a Sun Certified Java Programmer for Java 2 platform, 1.5 versions (SCJP 1.5). – 93% and a Sun Certified Web Component Developer 97%. I work as a Software Engineer at WSO2. Achala is a DZone MVB and is not an employee of DZone and has posted 20 posts at DZone. You can read more from them at their website. View Full User Profile

Route Traffic Using WSO2 ESB - Route to a JSP

03.03.2013
| 1308 views |
  • submit to reddit

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) 

Published at DZone with permission of Achala Chathuranga Aponso, author and DZone MVB. (source)

(Note: Opinions expressed in this article and its replies are the opinions of their respective authors and not those of DZone, Inc.)