Skip to content

Split an array of JSON messages in a Camel Exchange in to individual messages

Notifications You must be signed in to change notification settings

poggs/json-array-splitter

Repository files navigation

JSON Array Splitter

This Camel Splitter will split an Exchange containing an array of JSON messages in to individual messages.

Usage

Spring XML

<route id="testRoute">
  <from uri="queue:input"/>
  <split>
    <method>com.poggs.opensource.messaging.JsonArraySplitter</method>
    <to uri="queue:output">
  </split>
</route>

Fluent Builders

RouteBuilder builder = new RouteBuilder() {
  public void configure() {
    from("direct:a")
        .split(method(JsonArraySplitter.class))
        .to("direct:b");
  }
}

About

Split an array of JSON messages in a Camel Exchange in to individual messages

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages