1 Reply Latest reply on Dec 11, 2011 4:57 AM by Maximos Sapranidis

    RestEasy multiple services

    Maximos Sapranidis Newbie

      Hello, I am using RestEasy with JBoss AS7 using the third suggested configuration from this article https://docs.jboss.org/author/display/AS7/JAX-RS+Reference+Guide. I would like to create a second service to handle requests in a different part and not use one service that extends the Application, because I think by adding more functionality to the same class will only get me a bloated and confusing code.

      What I mean is create different services listening on different paths as is done in this example http://www.packtpub.com/article/restful-web-service-implementation-with-resteasy where three classes "listen" in three different paths. As far as I understand this was possible with older versions of JBoss prior to AS 6 but in AS 7 this is no longer supported am I correct? If not how should I change my web.xml file to acchive such behaiviour?

      I have tried using the web.xml found in the above mentioned example with no luck.

      Thanks in advanced maxsap