Hi I have been strugling to set up a webservice using Seam 2.1.1, and so far what I have accomplished was to set up a service responding on a ResourceQuery registred inside components.xml:
<resteasy:resource-query name="contaResourceQuery"
entity-query="#{contaList}" path="/conta"
entity-class="com.mydomain.estoque.Conta"
media-types="application/xml application/json application/fastinfoset"/>
But I could not manage writting a class for it. I cannot find the resource.
@Name("contaResourceQuery2")
@Path("/conta2")
public class ContaResourceQuery extends ResourceQuery<Conta> {
}
Someone could give me a clue how to make the service be reached?
Also here is the web.xml (just what has to do with resteasy stuff)
<context-param>
<param-name>resteasy.scan</param-name>
<param-value>true</param-value>
</context-param>
<context-param>
<param-name>resteasy.servlet.mapping.prefix</param-name>
<param-value>/rest</param-value>
</context-param>
<listener>
<listener-class>
org.jboss.resteasy.plugins.server.servlet.ResteasyBootstrap
</listener-class>
</listener>
<servlet>
<servlet-name>resteasy-servlet</servlet-name>
<servlet-class>
org.jboss.resteasy.plugins.server.servlet.HttpServletDispatcher
</servlet-class>
</servlet>
<servlet-mapping>
<servlet-name>resteasy-servlet</servlet-name>
<url-pattern>/rest/*</url-pattern>
</servlet-mapping>