Spring Integration: Whats going on in there? Part 1 Esper wire tap
February 24th, 2010
Earlier this week Russ Miles announced the release of the OpenCredo Esper extension project (read it here). This project is something we created primarily to make using Esper, the open source Complex Event Processing framework, in conjunction with Spring Integration really easy. At OpenCredo we have been using Esper to help solve the problem of comprehending and monitoring the state of messaging applications for a while now. Understanding the state of an application is one of the issues we repeatedly see with clients looking to adopt an Event Driven Architecture based on Spring Integration. Esper allows us to create views of the data as it passes through our asynchronous event based application which helps to eliminate some of the complexity created by breaking our application into a series of loosely coupled components.
In the first post on this topic I will be walking you through a simple example that takes an existing Spring Integration application and shows how to use the Esper wire tap to send messages passing over a Spring Integration channel into Esper.
Read the rest of this entry »
Filed under: Code Sample, Spring Integration | No Comments »
Demo One from my UK Spring User Group talk: The simplicity of Spring Integration
February 22nd, 2009
I was asked to make the code available for the demos that were part of my talk for the UK Spring User Group at Skills Matter. The video of which is here. Today I am posting the code for the first demo which demonstrates just how easy it is to get up and running with Spring Integration. The demo shows a simple application which takes requests from JMS, routes according to business logic and calls through to a Java service to process the message. The projects used in this demo can be downloaded here febSugDemo1.zip. The zip contains three Eclipse projects along with Maven poms so Eclipse is not a must.
- Application Generator: This project is there for testing and when run will create random LoanApplication instances and send them for processing over JMS. This can be started using LoanApplicationGenerator in src/main/java
- Demo 1 Quotes: Contains the Spring Integration configuration and simple service implementations used to process applications. Can be started from LoanQuoteStarter under src/test/java
- Loan Quote Domain: The LoanApplication and Quote types used by both previous proejcts
The example is that of a simple message flow which first receives a LoanApplication from a JMS queue. The loan application is then routed based on simple business rules to either a quote generating service or to a rejection queue for processing later. I will start off with a detailed walk through of the example application so if you just want to get the code up and running you can skip through to the getting it running section towards the bottom.
Loan application message flow
Filed under: Code Sample, Spring Integration | 8 Comments »
