Try looking at using the @ApplicationPath [1].
-Noah
[1] -
http://jersey.java.net/nonav/documentation/latest/user-guide.html#d4e212
On Sep 2, 2011, at 10:26 AM, Leonardo wrote:
> Hello everyone i have a question:
>
> as far as i know jersey comes bundled inside glassfissh so my ear will
> have little footprint. In the early days i used to configure JAX-RS
> following those steps (or something like this):
>
> http://www.vogella.de/articles/REST/article.html#first_servletdispatcher
>
> but with JEE 6 i am able to not use an web.xml file so, how can i do
> this configuration using the @WebServlet annotation? just extend
> ServletContainer will do the job?
>
> thanks in advance.
>
> ps: when using JAX-WS the annotated classes gets scanned and published
> automatically, will such kind of feature be available to JAX-RS too?