How to Route by JBI Operation in Apache Camel

import org.apache.camel.builder.RouteBuilder;

public final class SampleRouteBuilder extends RouteBuilder {

    public void configure() {
        from("jbi:service:http://www.fernandoribeiro.eti.br/sample/camel/SampleService").choice().when(property("JbiOperation").isEqualTo("{http://www.fernandoribeiro.eti.br/sample/camel}FirstOperation")).when(property("JbiOperation").isEqualTo("{http://www.fernandoribeiro.eti.br/sample/camel}SecondOperation"));
    }

}

https://issues.apache.org/jira/browse/CAMEL-1678 (vote for it!)

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s