Versions Compared


  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Migrated to Confluence 5.3

How does Camel compare to ServiceMix EIP

ServiceMix EIP was the ancestor though they both do similar things.

The main difference with ServiceMix EIP is its integrated into the existing ServiceMix XBean XML configuration whereas Camel has more Enterprise Integration Patterns and can be used outside of JBI (e.g. just with pure JMS or MINA). Also Camel supports a Java DSL or XML configuration.

Converting from ServiceMix EIP to Camel

Here's an example of a servicemix-eip route

Code Block
<eip:message-filter service="test:messageFilter" endpoint="endpoint">
    <eip:exchange-target service="test:trace3" />
    <eip:xpath-predicate xpath="count(/test:world) = 1" namespaceContext="#nsContext"/>

Here's the equivalent Camel code in XML

Code Block
  <from uri="jbi:endpoint:test:messageFilter:endpoint">
   <xpath>count(/test:world) = 1</xpath>
   <to uri="jbi:service:test:trace3"/>

Or Java

Code Block
  filter(ns.xpath("count(/test:world) = 1")).

See Also