Return-Path:
This tutorial uses the following frameworks: Note: The sample project can be downloaded, see the resources section. Then we integration the CXF wsdl2java generator in the pom.xml so we have CXF generate the needed POJO classes for our webservice contract. Prerequisites
+CXF wsdl2java
-However at first we must configure maven to live in the modern world of Java 1.5 so we must add this to the pom.xml
- <!-- to compile with 1.5 --> + <!-- to compile with 1.6 --> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-compiler-plugin</artifactId> <configuration> - <source>1.5</source> - <target>1.5</target> + <source>1.6</source> + <target>1.6</target> </configuration> </plugin>@@ -5045,14 +5045,9 @@ The address attribute defines the
To test if we are home free we run mvn clean compile.
Now that the code compiles we would like to run it in a web container, so we add jetty to our pom.xml so we can run mvn jetty:run:
+Now that the code compiles we would like to run it inside a web container, for this purpose we make use of Jetty which we will bootstrap using it's plugin org.mortbay.jetty:maven-jetty-plugin:
- <properties> - ... - <jetty-version>6.1.1</jetty-version> - </properties> - <build> <plugins> ... @@ -5064,7 +5059,7 @@ The address attribute defines the </plugin>
Notice: We use Jetty v6.1.1 as never versions has troubles on my laptop. Feel free to try a newer version on your system, but v6.1.1 works flawless.
+Notice: We make use of the Jetty version being defined inside the Camel's Parent POM.
So to see if everything is in order we fire up jetty with mvn jetty:run and if everything is okay you should be able to access http://localhost:8080.
Jetty is smart that it will list the correct URI on the page to our web application, so just click on the link. This is smart as you don't have to remember the exact web context URI for your application - just fire up the default page and Jetty will help you.
This tutorial uses the following frameworks:
-Note: The sample project can be downloaded, see the resources section.
@@ -725,16 +725,16 @@ mvn archetype:create -DgroupId=org.apachThen we integration the CXF wsdl2java generator in the pom.xml so we have CXF generate the needed POJO classes for our webservice contract.
-However at first we must configure maven to live in the modern world of Java 1.5 so we must add this to the pom.xml
- <!-- to compile with 1.5 --> + <!-- to compile with 1.6 --> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-compiler-plugin</artifactId> <configuration> - <source>1.5</source> - <target>1.5</target> + <source>1.6</source> + <target>1.6</target> </configuration> </plugin>@@ -886,14 +886,9 @@ The address attribute defines the
To test if we are home free we run mvn clean compile.
Now that the code compiles we would like to run it in a web container, so we add jetty to our pom.xml so we can run mvn jetty:run:
+Now that the code compiles we would like to run it inside a web container, for this purpose we make use of Jetty which we will bootstrap using it's plugin org.mortbay.jetty:maven-jetty-plugin:
- <properties> - ... - <jetty-version>6.1.1</jetty-version> - </properties> - <build> <plugins> ... @@ -905,7 +900,7 @@ The address attribute defines the </plugin>
Notice: We use Jetty v6.1.1 as never versions has troubles on my laptop. Feel free to try a newer version on your system, but v6.1.1 works flawless.
+Notice: We make use of the Jetty version being defined inside the Camel's Parent POM.
So to see if everything is in order we fire up jetty with mvn jetty:run and if everything is okay you should be able to access http://localhost:8080.
Jetty is smart that it will list the correct URI on the page to our web application, so just click on the link. This is smart as you don't have to remember the exact web context URI for your application - just fire up the default page and Jetty will help you.
This tutorial uses the following frameworks:
-Note: The sample project can be downloaded, see the resources section.
@@ -206,16 +206,16 @@ mvn archetype:create -DgroupId=org.apachThen we integration the CXF wsdl2java generator in the pom.xml so we have CXF generate the needed POJO classes for our webservice contract.
-However at first we must configure maven to live in the modern world of Java 1.5 so we must add this to the pom.xml
- <!-- to compile with 1.5 --> + <!-- to compile with 1.6 --> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-compiler-plugin</artifactId> <configuration> - <source>1.5</source> - <target>1.5</target> + <source>1.6</source> + <target>1.6</target> </configuration> </plugin>@@ -367,14 +367,9 @@ The address attribute defines the
To test if we are home free we run mvn clean compile.
Now that the code compiles we would like to run it in a web container, so we add jetty to our pom.xml so we can run mvn jetty:run:
+Now that the code compiles we would like to run it inside a web container, for this purpose we make use of Jetty which we will bootstrap using it's plugin org.mortbay.jetty:maven-jetty-plugin:
- <properties> - ... - <jetty-version>6.1.1</jetty-version> - </properties> - <build> <plugins> ... @@ -386,7 +381,7 @@ The address attribute defines the </plugin>
Notice: We use Jetty v6.1.1 as never versions has troubles on my laptop. Feel free to try a newer version on your system, but v6.1.1 works flawless.
+Notice: We make use of the Jetty version being defined inside the Camel's Parent POM.
So to see if everything is in order we fire up jetty with mvn jetty:run and if everything is okay you should be able to access http://localhost:8080.
Jetty is smart that it will list the correct URI on the page to our web application, so just click on the link. This is smart as you don't have to remember the exact web context URI for your application - just fire up the default page and Jetty will help you.