Title: Accessing JavaMail session

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?


Herve Tchepannou
Software Engineer
Objexis Coorporation
Phone: (514) 932 3295 Ext. 231
mailto:[EMAIL PROTECTED]

Objexis Coorporation
http://www.objexis.com
1635 Sherbrooke West, Suite #405
Montreal, Qc H3H 1E2
Tel: 514.932.3295
Fax: 514.932.4639
http://www.objexis.com

Important - This message may contain privileged and confidential information.  It is intended only for the use of the individual(s) named above. If the reader of this message is not the intended recipient you are hereby notified that any use, dissemination, distribution or reproduction of this message is prohibited. If you have received this message in error please notify Objexis Corporation immediately and promptly delete this message and any copies thereof. Any views expressed in this message are those of the individual sender and may not necessarily reflect the views of Objexis Corporation.

Reply via email to