| From | Sent On | Attachments |
|---|---|---|
| glas...@javadesktop.org | Jun 15, 2010 6:13 am | |
| Paul Sandoz | Jun 15, 2010 6:32 am | |
| glas...@javadesktop.org | Jun 15, 2010 6:44 am | |
| Paul Sandoz | Jun 15, 2010 7:02 am | |
| glas...@javadesktop.org | Jun 15, 2010 7:12 am | |
| Paul Sandoz | Jun 15, 2010 7:31 am | |
| glas...@javadesktop.org | Jun 15, 2010 8:12 am | |
| glas...@javadesktop.org | Jun 15, 2010 2:02 pm | |
| glas...@javadesktop.org | Jun 15, 2010 2:17 pm | |
| glas...@javadesktop.org | Jun 15, 2010 2:37 pm | |
| Paul Sandoz | Jun 16, 2010 1:49 am | |
| Paul Sandoz | Jun 16, 2010 2:08 am | |
| glas...@javadesktop.org | Jun 16, 2010 5:07 am | |
| glas...@javadesktop.org | Jun 16, 2010 5:25 am | |
| Paul Sandoz | Jun 16, 2010 5:43 am | |
| Paul Sandoz | Jun 16, 2010 5:46 am | |
| glas...@javadesktop.org | Jun 16, 2010 5:58 am | |
| glas...@javadesktop.org | Jun 16, 2010 5:59 am | |
| Paul Sandoz | Jun 16, 2010 7:08 am | |
| glas...@javadesktop.org | Jun 16, 2010 8:02 am | |
| Paul Sandoz | Jun 16, 2010 8:29 am | |
| glas...@javadesktop.org | Jun 16, 2010 8:49 am | |
| Paul Sandoz | Jun 16, 2010 9:20 am | |
| glas...@javadesktop.org | Jun 16, 2010 9:33 am | |
| Paul Sandoz | Jun 16, 2010 9:42 am | |
| glas...@javadesktop.org | Jun 16, 2010 10:15 am | |
| Paul Sandoz | Jun 17, 2010 3:26 am | |
| glas...@javadesktop.org | Jun 17, 2010 5:33 am | |
| Paul Sandoz | Jun 17, 2010 6:06 am |
| Subject: | Re: JAX-RS on Glassfish 3.1: @EJB injection? | |
|---|---|---|
| From: | glas...@javadesktop.org (glas...@javadesktop.org) | |
| Date: | Jun 15, 2010 2:02:54 pm | |
| List: | net.java.dev.glassfish.users | |
OK, almost there.
I have an ear with the following structure for which dependency injection is
still not working:
ear/lib/jar-containing-resources.jar ear/lib/jar-containing-resources.jar/META-INF/beans.xml ear/ejb-jar.jar ear/war-file.war
My resource class is in the jar-contianing-resources.jar. Note that I have
placed an empty beans.xml file in that jar file's META-INF directory, per the
CDI specification.
I am "publishing" my application according to section 2.3 of the JAX-RS 1.1
specification. That is, I have an empty Application subclass annotated with
@ApplicationPath and no web.xml file.
The result is that--nicely!--I can confirm that resource classes need not be in
a web application; they can indeed be in the lib directory of an ear. My
application is published, and "answers the phone" as I would expect.
However, my @RequestScoped resource, which contains an @EJB-annotated field,
does not have that field injected.
Did I put my beans.xml in the wrong place? Am I missing anything else obvious?
If not, I will happily attach my test project to this thread.
Best, Laird [Message sent by forum member 'ljnelson']





