From: <glassfish_at_javadesktop.org>
Date: Wed, 24 Feb 2010 06:59:27 PST
There's an even better option for this case. In Java EE 6 a stateless or singleton session bean can itself be implemented as a JAX-RS resource. There's no need to put a @ManagedBean in the middle. Just add the @Path annotation directly to the bean class. See here for more details :