Marco Zapletal created CAMEL-6464:
-------------------------------------
Summary: connectionTimeout property is ignored by JavaMail
Key: CAMEL-6464
URL: https://issues.apache.org/jira/browse/CAMEL-6464
Project: Camel
Issue Type: Bug
Components: camel-mail
Affects Versions: 2.10.2
Environment: mail-1.4.5.jar
Reporter: Marco Zapletal
JavaMail ignores the timeout values set via the connectionTimeout property.
- Within MailConfiguration::createJavaMailProperties the
mail.<protocol>.timeout and mail.<protocol>.connectionTimeout parameters are
set as long values
- In com.sun.mail.util.PropUtil::getInt (line 141) the property is ignored
since it is a long value
Changing the type of connectionTimeout from long to int would be the cleanest
solution - another suggestion would be to downcast the connectionTimeout in
MailConfiguration::createJavaMailProperties
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira