Saturday, October 31, 2015

WSO2 Gateway (WSO2 GW) -Alpha

WSO2 Gateway (WSO2 GW) is an ultra high performance, lightweight and configuration-driven message gateway based on
standard gateway pattern. It aims to encapsulate messaging between source and target systems that are built with
disparate technologies, protocols, and standards. While it includes messaging between two systems, message mediation
can be controlled by configuring WSO2 GW’s mediation logic.

Download Aplha

Key Features

* Ultra high performance and low latency  HTTP/S messaging.

* Supports thousands of concurrent connections/clients.

* Header-based routing using Apache Camel as the message mediation engine.

* Defines REST services/APIs using Camel REST DSL.

* Lightweight and stateless service orchestration.

* Load balancing and failover messaging.

* Error handling support.

Getting Started

By configuring the [camel-context.xml]( (which can be found in `$CARBON_HOME/repository/conf/camel/camel-context.xml`)
we can achieve camel routing.

Sample camel configuration for Header-based routing

    <route id="http-routes">
        <from uri="wso2-gw:/default"/>
                <simple>${header.routeId} regex 'r1'</simple>
                <to uri="wso2-gw:http://localhost:9000/services/SimpleStockQuoteService"/>
                <simple>${header.routeId} regex 'r2'</simple>
                <to uri="wso2-gw:http://localhost:9002/service/SimpleStockQuoteService"/>
                <to uri="wso2-gw:http://localhost:9004/SimpleStockQuoteService"/>

 Sample request to route to localhost:9000
 curl  http://localhost:9090/default -H __"routeId:r1"__

 If we don't have any routeId header the request will be routed to the localhost:9004 (i.e to otherwise)

Sampel REST configuration

Following is a sample rest interface definition
    <rest path="/gw">
        <get uri="/news">
            <to uri="direct:getNews"/>
        <get uri="/news/{id}">
            <to uri="direct:getNewsById"/>

and follwoing is the corresponding routes
        <from uri="direct:getNews"/>
        <to uri="wso2-gw:"/>
        <from uri="direct:getNewsById"/>

when we invoke the request `http://localhost:9090/gw/news`
it will be routed to ``

similarly `http://localhost:9090/gw/news/24` will be routed to ``


  1. WSO2 Gateway (WSO2 GW) is an ultra high performance, lightweight and configuration-driven message gateway based on standard gateway patterns.I hope this will be very helpful to the students to complete their educational works related with the topics and also to know more about the gateways. And also today most of them are depends on the online thesis writing service. Top thesis writing service provide better and effective writing services to the students.

  2. This blog helped my friend a lot, Thanks for sharing
    Send Flowers To CAMBODIA Online

  3. r that reason all the instructions for prostitutake into account that whenever you e-book a bangalore escorts bar ladies in Bangalore, you can maximum perhaps include in intercoursewith her. locating money after sex is truly prostitution, and foContact me 08123770473, 8147349718

  4. when making a decision to be our purchaser, we can assure you the first-class carrier, there's to make you sense glad. each of our escorts is lovely and versatile of their methods so irrespective of your goals are, you will get them fulfilled right here.
    Contact me 08123770473, 8147349718 Visit us

  5. complete enjoyments affords College girls Bangalore escorts enterprise experience many things to decide if they're happening to enjoyable desirable for us or not. men can be every one of picky in conjunction with.Contact me 08123770473, 814734971

  6. we're hit with sexual preference. The sexual emotions that are aroused have to be explored as they impact our lives. yes, our sexual nicely-being of someone has an instantaneous effect on his/her physical as well as intellectual health. Contact me 08123770473, 814734971

  7. I’m really liking what I’m reading about it.I know Google Adsense is the best and highest paying contextual advertising network in the market and AdSense alternatives can make good money online ,Its very useful .This paragragh gives clear idea for the new viewers
    FA 2 Hindi Model Question Papers
    nice webiste latest telugu news
    latest jobs
    latest jobs its is very helpful site

  8. Bangalore Escorts I I Bangalore Call Girls

    Bangalore Call Girls Call 9886472805 Btm Layout Call Girls Escorts Services In Bangalore Independent Escorts in Bangalore. escorts in BTM layout.

  9. If you are looking for professional resume editing services, you are in the right place. Our editing specialists have enormous experiences in all kinds of resume editing and writing. Formatting, proofreading, checking grammar and style, and so on – these are just some of the editing services we offer to help you improve your resume writing skills. We take every task seriously to make sure you receive a perfect product.

  10. Hello! Thanks for this awesome piece of information. By the way, want to get familiar with what comic book script format is? Visit the site for more valuable insight into this issue.

  11. TreasureBox is operated by a group of young, passionate, and ambitious people that are working diligently towards the same goal - make your every dollar count, as we believe you deserve something better.
    Check out the best
    entertainment unit
    furniture nz