Herve Tchepannou wrote:
> In JBoss documentation, its recommended to defined in the ejb-jar.xml a
> resource named mail/Mail of type javax.mail.Session. and in the code,
> request it via the JNDI name java:Mail, which works fined.
>
> But when I try to request the JavaMail session with the JNDI name
> java:comp/env/mail/Mail, I receive an exception?! It seems to me that
> EJB specs recomend to access resource via java:/comp/env/... domain.
>
> So why can't I access mail session via java:/comp/env/mail/Mail?
>
>
Are you using 'java:comp' or 'java:/comp'? The first is correct.
What exception are you getting?
-danch
_______________________________________________
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user