[forge-dev] REST Plugin

Dan Allen dan.j.allen at gmail.com
Thu Aug 9 19:49:00 EDT 2012

On Thu, Aug 9, 2012 at 3:32 PM, Luca Masini <luca.masini at gmail.com> wrote:

> Hi guys, I've found two things that are not standard jax-rs 1.1
> 1) web.xml: it registers only the servlet-mapping (2.3.2 of the specs),
> and this is not allowed

Personally I think the plugin should be using the annotation
@ApplicationPath instead of the web.xml entry. I know we've debated this
before, but this approach brings it inline with what we do in JDF and it's
really the recommended way of activating JAX-RS IMO.

public class JaxRsActivator extends Application {

(The path should be selected based on what the user specifies during setup).


Dan Allen
Principal Software Engineer, Red Hat | Author of Seam in Action
Registered Linux User #231597

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/forge-dev/attachments/20120809/ebefa906/attachment.html 

More information about the forge-dev mailing list