users@jersey.java.net

Injection in JAX-RS Resources?

From: Moises Lejter <moilejter_at_gmail.com>
Date: Thu, 24 Sep 2009 01:31:59 -0500

Hi! I am trying to get injection of a local session EJB into a JAX-
RS resource,
using NetBeans 6.8 (nightly) and Glassfish v3 b62 (which I believe use
Jersey 1.1) - and I must be missing something... :-(

I put together a little NetBeans project that has a local session EJB
to be
injected, and a few JAX-RS resources that I thought would result in an
EJB being injected into an attribute of the JAX-RS resource - and the
only one that works is the resource that is also a session bean.

I even have the EJBProvider class from Paul Sandoz's blog:
http://blogs.sun.com/sandoz/entry/ejb_injection
and it doesn't seem to be called ... :-(

Could I ask you to take a look at the project, and tell me what I might
be missing? (I thought the project would b easier to see, than my
pasting all my attempts in here...)

Thank you!

Moises