users@jersey.java.net

A taster of Jersey/JAX-RS with EJB 3.1

From: Paul Sandoz <Paul.Sandoz_at_Sun.COM>
Date: Wed, 11 Mar 2009 10:58:59 +0100

Hi,

Attached is a very simple maven project that uses the new EJB 3.1 no-
interface view and session beans in the war. The session bean is also
a root resource class.

You need to utilize a promoted build of glassfish [1], build 38 or
greater, that contains the EJB 3.1 functionality.

If you look at the integration code, the EJBIntegrationServlet, you
will notice integration is currently explicit in terms of an IoC
component provider factory, and utilizing a interceptor for post
construction (which uses a static field hack for access to contextual
information). Such explicit integration and hacks will not be
necessary once we have the right hooks in place to connect to the GF
EJB infrastructure.


For the IoC integration geeks: the integration uses a new IoC feature
to support injection for IoC frameworks that support post construction
interception.

Paul.






[1] http://download.java.net/glassfish/v3/promoted/