Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.
Now that we have seen the various building blocks of the framework, let’s see a working example. Don’t worry too much if the components appearing in the example don’t makes sense. You will understand all of them as we progess through the book.
A Trader may use a web application to place a Trade. The Trades are sent to a JMS destination, where they are processed by another component to book the Trades. The requirement is to connect to a JMS Destination and fetch the Trades and process them.
The Spring Integration framework helps you focus on coding the
business logic while it handles the mundane tasks. You can use an
adapter (inbound-channel-adapter) to
pick up the messages from an input JMS Queue. The declaration of the
adapter is given below: