users@jax-rs-spec.java.net

[jax-rs-spec users] [jsr339-experts] Re: Default Servlet Mapping?

From: Sergey Beryozkin <sberyozkin_at_talend.com>
Date: Wed, 14 Mar 2012 15:45:22 +0000

Hi Santiago
On 14/03/12 15:37, Santiago Pericas-Geertsen wrote:
> Hello Experts,
>
> We've done some work in Section 2.3.2 to better explain the integration with the Servlet container and its pluggability framework. Unfortunately, there are still some cases --in the absence of @ApplicationPath-- in which a servlet mapping must be specified in a DD.
>
> Shall we define a default servlet mapping for JAX-RS 2.0? JSF uses "/faces/*", for example. How about "/webapi/*" for us?
I've no experience with JSF, I'm assuming the users are not calling
/faces directly/explicitly.
'/webapi/*' sounds ok as far as the name of uri pattern is concerned,
may be "/rs/*" is also possible, but IMHO users will in most cases
expect some custom mappings ? Unless we expect that some convention will
be formed by the community, similar to "/services/*" with SOAP

Cheers, Sergey

>
> -- Santiago