users@jersey.java.net

RE: [Jersey] Exposing EJB 3 Beans through JAX-RS

From: Markus KARG <markus.karg_at_gmx.net>
Date: Mon, 8 Sep 2008 09:16:36 +0200

> IMHO the use of EJBs defined to be JAX-RS resources may be somewhat
> limited because (session) EJBs are designed for RCP-style interactions
> (CORBA, WS-*) thus resource methods may not make any sense in terms of
> equivalent calls using CORBA.

Maybe it makes sense to merge the JAX-RS resource and the SessionBean to
become a single class? Actually the JAX-RS resource is often just an
interfacing layer, providing some services around JPA resources -- just like
many session beans are. So it might be a good solution to annotate a session
bean's method with @GET, @PUT etc.?
 
Have Fun
Markus