O'Reilly logo

Advanced Java® EE Development with WildFly® by Deepak Vohra

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Deploying the RESTful web service

In this section, we will compile, package, and deploy the JAX-RS application jboss-jaxrs with Maven. A pom.xml file gets created when a Java EE Web Project is created. In the pom.xml file, the jboss-jaxrs Artifact ID is specified with packaging as war. The JAX-RS API is provided by WildFly 8.1:

  <dependency>
    <groupId>org.jboss.spec.javax.ws.rs</groupId>
    <artifactId>jboss-jaxrs-api_1.1_spec</artifactId>
    <version>1.0.1.Final</version>
    <scope>provided</scope>
  </dependency>

As we are using the Jersey JAX-RS RI, include the dependencies for Jersey, which are available in the Group ID com.sun.jersey:

 <dependency> <groupId>com.sun.jersey</groupId> <artifactId>jersey-server</artifactId> <version>1.18</version> </dependency> ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required