On 8/6/2012 10:52 AM, Christopher Schultz wrote:
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Mark,
On 8/6/12 12:59 PM, Mark Eggers wrote:
There are a lot of properties available, but unfortunately there is
no password. However, the hint is there (in the paragraph that you
quoted).
After trolling the source for Tomcat 6 (and a bit of searching on
the Internet), it appears that a password can be specified. The
source in question is:
org.apache.naming.factory.MailSessionFactory.java
The attribute is password (in the Resource definition). That looks
like the only additional (non JavaMail API) attribute / property
that this factory supports (hence the hint).
I actually didn't know that. I had forgotten to mention that this is a
possibilty:
Session session = ... ; //get from JNDI
Transport tx = session.getTransport(...);
tx.connect(host, rt, username, password);
...but if Tomcat will do it for you, why not let it?
I've never been fond of maintaining the same information in
multiple places, so postfix is probably good in this environment.
Sounds like I should submit a couple of patches to the
documentation.
1. Add the paragraph from Tomcat 7 back into Tomcat 6 2. Add a
paragraph to both stating that Tomcat's MailSessionFactory supports
"password" as the only additional attribute / property.
That would be great.
Thanks,
- -chris
Minor enhancements submitted for Tomcat 6 and 7 with svn diffs.
https://issues.apache.org/bugzilla/show_bug.cgi?id=53664 Tomcat 6
https://issues.apache.org/bugzilla/show_bug.cgi?id=53665 Tomcat 7
/mde/
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org