Java Reference
In-Depth Information
you're just getting started with Spring Integration, you'll find there's a lot of value in downloading the
whole distribution and reading through the numerous examples. The examples are in a separate folder,
usually called Samples, in the root of the distribution.
If you decide to use the Open Services Gateway initiative (OSGi), you can use the SpringSource
enterprise repository, which provides OSGi-friendly JAR files, both from SpringSource and from third-
party projects. Be careful if you decide to use those JARs with Maven, however, because they import
all the other SpringSource enterprise JARs for the core Spring framework and other OSGi-friendly,
third-party libraries. If you already have Spring and all the other packages imported, relying on the
SpringSource enterprise JARs will yield two of every JAR in the Spring framework! Yikes!
Instead, if you're not using OSGi, but still using Maven or Ivy, use the public JARs available on the
main Maven repositories (e.g., http://www.ibiblio.org/maven/ ). A sample Maven Project Object Model
(POM) is included in the source code for this topic. The salient parts are extracted here:
<dependency>
<groupId>org.springframework.integration</groupId>
<artifactId>spring-integration-core</artifactId>
<version>1.0.3.RELEASE</version>
</dependency>
<dependency>
<groupId>org.springframework.integration</groupId>
<artifactId>spring-integration-httpinvoker</artifactId>
<version>1.0.3.RELEASE</version>
</dependency>
<dependency>
<groupId>org.springframework.integration</groupId>
<artifactId>spring-integration-file</artifactId>
<version>1.0.3.RELEASE</version>
</dependency>
<dependency>
<groupId>org.springframework.integration</groupId>
<artifactId>spring-integration-jms</artifactId>
<version>1.0.3.RELEASE</version>
</dependency>
<dependency>
<groupId>org.springframework.integration</groupId>
<artifactId>spring-integration-adapter</artifactId>
<version>1.0.3.RELEASE</version>
</dependency>
8-2. Integrating One System with Another Using EAI
Problem
You have two applications that need to talk to each other through external interfaces. You need to
establish a connection between the applications' services and/or their data.
Solution
You need to employ enterprise application integration (EAI) , which is the discipline of integrating
applications and data using a set of well-known patterns. These patterns are usefully summarized and
 
Search WWH ::




Custom Search