users@glassfish.java.net

Re: resource injection doesn't seem to be working...

From: <glassfish_at_javadesktop.org>
Date: Thu, 19 Jul 2007 01:06:05 PDT

Hi,

Are you sure?

In my understanding of the whole thing, [b]name[/b] IS the JNDI name in the current environment (java:comp/env...). [b]mappedname[/b] ist the name it is mapped to on the server and is server dependent (which is how it is written in the documentation).

I've looked up the code from the JEE tutorial "The confirmer Example Application" page 1186:

@Resource(name="mail/myMailSession")
private Session session;

greets
jeremie
[Message sent by forum member 'granat' (granat)]

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