Skip to content

Instantly share code, notes, and snippets.

@ricston-git
Created July 27, 2015 12:10
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ricston-git/510795c20858d522ffda to your computer and use it in GitHub Desktop.
Save ricston-git/510795c20858d522ffda to your computer and use it in GitHub Desktop.
<inbound-endpoint address="http://localhost:8080/rest" exchange-pattern="request-response" />
<jersey:resources>
<component>
<spring-object bean="restResource" />
</component>
</jersey:resources>
<object-to-string-transformer />
<choice>
<when evaluator="groovy" expression="payload.contains('&lt;people&gt;')">
<outbound-endpoint ref="splitter"
exchange-pattern="request-response" />
</when>
<otherwise>
<log-component />
</otherwise>
</choice>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment