RESTEasy Tutorial Part-1: Basics
RESTEasy Tutorial Series
RESTEasy is a JAX-RS implementation from JBoss/RedHat and is in-built in JBoss 6 onwards.
Here I am going to show you how to develop a Simple RESTful Web Services application using RESTEasy and JBossAS7.1.1.FINAL.
Step#1: Configure RESTEasy dependencies using Maven.
Step#2: Configure RESTEasy in web.xml
Step#3: Create User domain class, MockUserTable class to store User objects in-memory for testing purpose and UserResource class to expose CRUD operations on User as RESTful webservices.
Step#6: JUnit TestCase to test the REST Webservice.
Step#7: To test the REST service we can use the REST Client Tool.
You can download REST Client Tool at http://code.google.com/a/eclipselabs.org/p/restclient-tool/
Important Things to Keep in mind:
1. org.jboss.resteasy.plugins.server.servlet.ResteasyBootstrap Listener should be registered before any other listener.
2. You should configure resteasy.servlet.mapping.prefix <context-param> if the HttpServletDispatcher servlet url-pattern is anything other than /*
3. Keep visiting my blog