users@glassfish.java.net

JAX-RS on Glassfish 3.1: _at_EJB injection?

From: <glassfish_at_javadesktop.org>
Date: Tue, 15 Jun 2010 06:23:03 PDT

I need to know if @EJB injection is supposed to be working for a JAX-RS resource class in Glassfish 3.1 b04 or later.

Specifically, I have a resource class that I would like to place the following in:

  @EJB // happy to either leave empty or supply the proper "lookup" string
  private FooManager myEjb;

This does not work in JBoss. It is required by the Java EE specification. On Glassfish, I find that it does not work either, which surprises me; I feel like I've seen it working before.

Any known issues around this?

Thanks,
Laird
[Message sent by forum member 'ljnelson']

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