Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Migration of unmigrated content due to installation of a new plugin

...

First here's how we configure the two components in ServiceMix. Notice that ServiceMix is doing the routing here using destinationService.

...

 

Now lets look at the sender POJO. The sendMessages() method will send messages onto the JBI bus to the destination service specified in the above XML.

...

...

 

Then the receiver processes inbound messages as follows.

...

...

 

Being even more POJO

The code above may seem a bit too verbose for you. Firstly you can reduce much code by reusing the Component helper classes.

...

For example this POJO sends messages into the JBI bus.

...

...

 

And this is a POJO receiver which just consumes the messages its given, without explicitly implementing the component or lifecycle interfaces

...

...