users@jersey.java.net

web.xml for multiple resource classes

From: dloy <david.loy_at_ucop.edu>
Date: Thu, 10 Sep 2009 12:39:52 -0700

I have successfully been able to use a Jersey resource class using a
web.xml containing only:
        
<servlet-class>com.sun.jersey.spi.container.servlet.ServletContainer</servlet-class>
Letting Jersey discover the resources.

I now require having multiple classes that have overlapping resource
@Path. What is the preferred method for directing Jersey to a specific
class or project for resolving the resources.

I've encountered a number of suggestions on the Web which resulted in:

is not a super class of class com.sun.jersey.api.core.ResourceConfig

Could someone direct me to documentation for doing this
(an example would be useful if it requires class modification - extending ResourceConfig).

Thanks
David