Free Trial

Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.


  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint
Share this Page URL
Help

Splitters > Using Custom Splitters

Using Custom Splitters

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.


  

You are currently reading a PREVIEW of this book.

                                                                                        

Get instant access to over
$1 million worth of books and videos.

  

Start a Free Trial