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

Creating a sample RESTful web service

In this section, we will create a RESTful web service. Right-click on the JAX-RS Web Services node in Project Explorer and select New JAX-RS Resource, as shown here:

Creating a sample RESTful web service

Select the jboss-jaxrs project and specify Package as org.jboss.jaxrs.rest, Name as HelloWorldResource, Resource path as /helloworld, and click on Next, as shown here:

Creating a sample RESTful web service

In the JAX-RS Application window, select the Source folder as jboss-jaxrs/src/main/java and specify Package as org.jboss.jaxrs.rest, Name as HelloRESTApplication, Application path as ...

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