Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.
If you choose to use custom splitters, all you have to do is create a simple POJO that implements the splitting algorithm.
Let’s take an example of an incoming message consisting of a
normal Trade and some encrypted data. The requirement is to extract this
encrypted message into a different object, EncryptedTrade. The newly created EncryptedTrade and the old (original) Trade
will be sent out to the output channel. The output channel will receive
two messages, one which is a normal Trade with no encrypted message and
a second message with the encrypted message represented by EncryptedTrade object. The preferred way to do
this is to introduce a splitter component to split the incoming message
into two Trades.