INTSAMPLES-89 - Upgrade to Spring Integration 2.2 RC3
* Test samples * Polish documentation * Polish code For reference see: https://jira.springsource.org/browse/INTSAMPLES-89
This commit is contained in:
@@ -1,14 +1,16 @@
|
||||
XML Sample
|
||||
==========
|
||||
|
||||
This example demonstrates the following aspects of the XML support available with Spring Integration:
|
||||
This example demonstrates the following aspects of the [Extensible Markup Language][] (XML) support available with *Spring Integration*:
|
||||
|
||||
1. XPath Splitter - to split an order with multiple items into several order messages for separate processing.
|
||||
2. XPath Router - to route messages according to the evaluation of an XPath expression which tests to see if the order item is in stock.
|
||||
3. XPath Expression - which tests to see if the order item is in stock
|
||||
3. XSLT Transformer - to transform the payload of the order message into a resupply message where the order item is found to be out of stock.
|
||||
1. [XPath][] Splitter - to split an order with multiple items into several order messages for separate processing.
|
||||
2. [XPath][] Router - to route messages according to the evaluation of an [XPath][] expression which tests to see if the order item is in stock.
|
||||
3. [XPath][] Expression - which tests to see if the order item is in stock
|
||||
3. [XSLT][] Transformer - to transform the payload of the order message into a resupply message where the order item is found to be out of stock.
|
||||
|
||||
To run the sample execute class **org.springframework.integration.samples.xml.BookOrderProcessingTestApp**. With Maven you can run the sample by executing:
|
||||
## Running the Sample
|
||||
|
||||
To run the sample, execute the class **org.springframework.integration.samples.xml.BookOrderProcessingTestApp**. Alternatively, you can run the sample using [Maven][] by executing:
|
||||
|
||||
$ mvn clean package exec:java
|
||||
|
||||
@@ -31,4 +33,8 @@ You should see the following output:
|
||||
<bb:isbn>1590596439</bb:isbn>
|
||||
</bb:order>
|
||||
</bb:bigBooksOrder>
|
||||
|
||||
|
||||
[Extensible Markup Language]: http://en.wikipedia.org/wiki/XML
|
||||
[Maven]: http://maven.apache.org/
|
||||
[XPath]: http://en.wikipedia.org/wiki/XPath
|
||||
[XSLT]: http://en.wikipedia.org/wiki/XSLT
|
||||
|
||||
@@ -5,12 +5,15 @@
|
||||
<groupId>org.springframework.integration.samples</groupId>
|
||||
<artifactId>xml</artifactId>
|
||||
<name>Samples (Basic) - XML Sample</name>
|
||||
<version>2.1.0.BUILD-SNAPSHOT</version>
|
||||
<version>2.2.0.BUILD-SNAPSHOT</version>
|
||||
<packaging>jar</packaging>
|
||||
<prerequisites>
|
||||
<maven>2.2.1</maven>
|
||||
</prerequisites>
|
||||
<properties>
|
||||
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
|
||||
<spring.integration.version>2.1.0.RELEASE</spring.integration.version>
|
||||
<log4j.version>1.2.16</log4j.version>
|
||||
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
|
||||
<spring.integration.version>2.2.0.RC3</spring.integration.version>
|
||||
<log4j.version>1.2.17</log4j.version>
|
||||
<junit.version>4.10</junit.version>
|
||||
</properties>
|
||||
<dependencies>
|
||||
@@ -36,23 +39,23 @@
|
||||
<plugin>
|
||||
<groupId>org.apache.maven.plugins</groupId>
|
||||
<artifactId>maven-compiler-plugin</artifactId>
|
||||
<version>2.3.2</version>
|
||||
<version>2.5.1</version>
|
||||
<configuration>
|
||||
<source>1.5</source>
|
||||
<target>1.5</target>
|
||||
<source>1.6</source>
|
||||
<target>1.6</target>
|
||||
<compilerArgument>-Xlint:all</compilerArgument>
|
||||
<showWarnings>true</showWarnings>
|
||||
<showDeprecation>false</showDeprecation>
|
||||
<showDeprecation>true</showDeprecation>
|
||||
</configuration>
|
||||
</plugin>
|
||||
<plugin>
|
||||
<groupId>org.codehaus.mojo</groupId>
|
||||
<artifactId>exec-maven-plugin</artifactId>
|
||||
<version>1.2.1</version>
|
||||
<configuration>
|
||||
<mainClass>org.springframework.integration.samples.xml.BookOrderProcessingTestApp</mainClass>
|
||||
</configuration>
|
||||
</plugin>
|
||||
<plugin>
|
||||
<groupId>org.codehaus.mojo</groupId>
|
||||
<artifactId>exec-maven-plugin</artifactId>
|
||||
<version>1.2</version>
|
||||
<configuration>
|
||||
<mainClass>org.springframework.integration.samples.xml.BookOrderProcessingTestApp</mainClass>
|
||||
</configuration>
|
||||
</plugin>
|
||||
</plugins>
|
||||
</build>
|
||||
<repositories>
|
||||
|
||||
Reference in New Issue
Block a user