Hello everybody,
I started to use Tomcat 6 for a mail web application - which is coded in php
at the moment. I followed the JNDI-Resources HOW-TO to make use of JavaMail
Sessions. As recommended under 3. Configure Tomcat's Resource Factory I
copied the Resource tag to my context.xml in the web application project.
<Resource name="mail/Session" auth="Container"
type="javax.mail.Session"
mail.smtp.host="localhost"/>
How cat I make use of mail.smtp.host in my code, in oder to avoid hard-coding
the hostname?
And, is it also ok to specify an imap store in the resource descriptor? If so,
would it be 'mail.imap.store' ?
Best Regards,
Oliver Block
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]