This content has been marked as final.
Show 2 replies
-
1. Re: JNDI lookup for mail Session on Glassfish
arsenalist Dec 17, 2008 7:18 PM (in response to arsenalist)This message formatted funny for some reason, please ignore all the | characters in there... -
2. Re: JNDI lookup for mail Session on Glassfish
arsenalist Dec 17, 2008 8:00 PM (in response to arsenalist)I figured this out, needed to add the following in web.xml:
<resource-ref>
<res-ref-name>mail/local</res-ref-name>
<res-type>javax.mail.Session</res-type>
<res-auth>Container</res-auth>
</resource-ref>
and change component configuration to:
<mail:mail-session session-jndi-name="java:comp/env/mail/local" />