users@glassfish.java.net

Re: Re: Re: Java EE 6: Container Managed Transaction with JAX-RS

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 :

http://blogs.sun.com/kensaks/entry/jax_rs_and_ejb
http://blogs.sun.com/sandoz/entry/glassfish_v3_ejb_3_1
[Message sent by forum member 'ksak' (kenneth.saks_at_sun.com)]

http://forums.java.net/jive/thread.jspa?messageID=388443