users@glassfish.java.net

Re: _at_Resource for MailSession in JSF Container

From: <glassfish_at_javadesktop.org>
Date: Sun, 16 Dec 2007 15:18:27 PST

Hi Cheng,

Thanks a Lot for the pointer! When the JNDI name specified in the web.xml :

<resource-ref>
        <description>Mail Session Reference</description>
        <res-ref-name>mail/testmail</res-ref-name>
        <res-type>javax.mail.Session</res-type>
        <res-auth>Container</res-auth>
</resource-ref>

JSF Managed Bean can use the JNDI Lookup to get the reference, but @Resource (even with mappedName specified) is still playing comment... and can't find any indication if annotation handler was called at all or not:(

Thanks again,
Dmitry.
[Message sent by forum member 'dmitrys' (dmitrys)]

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