title: Rest easy and jackson how did it work out of the box?
body: <p>I was trying to create a rest service using RestEasy which would produce JSON output. I used RestEasy 2.2.1.GA +  JBoss 7.1 .  I didnt configure any of Jacson dependencies in my POM file neither did I configure anything related to Jacskon in my web.xml file but the JSON conversion worked out of the box for me . This is my web.xml</p>
  
  <pre><code>&lt;web-app id="WebApp_ID" version="2.4"
  xmlns="http://java.sun.com/xml/ns/j2ee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee 
  http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd"&gt;
  &lt;display-name&gt;Restful Web Application&lt;/display-name&gt;
  
  &lt;!-- Auto scan REST service --&gt;
  &lt;context-param&gt;
      &lt;param-name&gt;resteasy.scan&lt;/param-name&gt;
      &lt;param-value&gt;true&lt;/param-value&gt;
  &lt;/context-param&gt;
  
  &lt;!-- this need same with resteasy servlet url-pattern --&gt;
  &lt;context-param&gt;
      &lt;param-name&gt;resteasy.servlet.mapping.prefix&lt;/param-name&gt;
      &lt;param-value&gt;/rest&lt;/param-value&gt;
  &lt;/context-param&gt;
  
  &lt;listener&gt;
      &lt;listener-class&gt;
          org.jboss.resteasy.plugins.server.servlet.ResteasyBootstrap&lt;/listener-class&gt;
  &lt;/listener&gt;
  
  &lt;servlet&gt;
      &lt;servlet-name&gt;resteasy-servlet&lt;/servlet-name&gt;
      &lt;servlet-class&gt;
          org.jboss.resteasy.plugins.server.servlet.HttpServletDispatcher&lt;/servlet-class&gt;
  &lt;/servlet&gt;
  
  &lt;servlet-mapping&gt;
      &lt;servlet-name&gt;resteasy-servlet&lt;/servlet-name&gt;
      &lt;url-pattern&gt;/rest/*&lt;/url-pattern&gt;
  &lt;/servlet-mapping&gt;
  
  &lt;welcome-file-list&gt;
      &lt;welcome-file&gt;index.html&lt;/welcome-file&gt;
  &lt;/welcome-file-list&gt;
  </code></pre>
  
  <p></p>
  
  <p>and this is my service class </p>
  
  <pre><code>package com.ajbose.test;
  
  
  import javax.ws.rs.GET;
  import javax.ws.rs.Path;
  import javax.ws.rs.Produces;
  import javax.ws.rs.core.MediaType;
  
  @Path("/message")
  public class MessageRestService {
  
  
  @GET
  @Produces(MediaType.APPLICATION_JSON)
  public Student printMessage() {
      Student student = new Student("Ajay","bose",12,21);
      return student;
      }
  }
  </code></pre>
  
  <p>How did it work ? 
  Even in the example that I followed I am not able to find any jacskon configurations for data bindinding. </p>
  
  <p>I want to use <a href="https://github.com/FasterXML/jackson-databind" rel="nofollow">https://github.com/FasterXML/jackson-databind</a> for my JSON conversions. What configurations do I have to change so that the Appserver would make use of it. </p>
  
  <p>I know its too many questions. It would be enough if you could point me to a right book/link to read. Thanks in Advance.</p>