diff --git a/basic/http/README.md b/basic/http/README.md index 2dd28770..15a48290 100644 --- a/basic/http/README.md +++ b/basic/http/README.md @@ -10,7 +10,9 @@ The sample consists of two parts: ## Running the sample -### Command Line Using Maven +### Server + +#### Command Line Using Maven The easiest way to run the **server** is to use the [Maven Jetty Plugin](http://docs.codehaus.org/display/JETTY/Maven+Jetty+Plugin). Simply execute: @@ -20,17 +22,25 @@ This command starts a Jetty servlet container running on port 8080 serving the a $ mvn clean package -The resulting war-file will be located in the **target** folder. In order to run the **client**, execute: +The resulting war-file will be located in the **target** folder. + +#### Using an IDE such as SpringSource Tool Suite™ (STS) + +If you are using [STS](http://www.springsource.com/developer/sts) and the project is imported as an Eclipse project into your workspace, you can just execute **Run on Server**. This will start the **server** application. + +### Client + +#### Command Line Using Maven + +In order to run the **client** using Maven, execute: $ mvn clean package exec:java This will package the application and run it using the [Exec Maven Plugin](http://mojo.codehaus.org/exec-maven-plugin/) -### Using an IDE such as SpringSource Tool Suite™ (STS) +#### Using an IDE such as SpringSource Tool Suite™ (STS) -If you are using STS and the project is imported as an Eclipse project into your workspace, you can just execute **Run on Server**. This will start the **server** application. - -Next, run the simple test **client** program: **org.springframework.integration.samples.http.HttpClientDemo** +In STS (Eclipse), go to package **org.springframework.integration.samples.http**, right-click **HttpClientDemo** and select **Run as** --> **Java Application**. This will run the **client** application. ### Output