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 10:00:01 +0200

I see. Sounds great. Like to have it. ;-)

> > 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.?
> Yes, that is what i was referring to, and suggesting two solutions to
> support the registration of such annotated session beans (that are
> also registered in JNDI). Jersey should be able to process the
> annotations and not have to know that there are specific to a session
> bean, all it requires is an instance.

Have Fun
Markus