camel-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Christian Müller (JIRA) <>
Subject [jira] [Commented] (CAMEL-6464) connectionTimeout property is ignored by JavaMail
Date Thu, 20 Jun 2013 19:26:20 GMT


Christian Müller commented on CAMEL-6464:

Thanks Marco for reporting this issue. I understood it's hard/impossible to unit test.

I'm also +1 to change the connectionTimeout type from long to int. It's theoretically not
backwards compatible, but only if somebody did something like this:

I think most of the user configure it with the uri or by using
which is backwards compatible.

I will go ahead and and do the proposed fixed in a few minutes. It would be great if you could
verify it with the latest SNAPSHOT versions (2.10.x, 2.11.x, 2.12.x). It should be available
> connectionTimeout property is ignored by JavaMail
> -------------------------------------------------
>                 Key: CAMEL-6464
>                 URL:
>             Project: Camel
>          Issue Type: Bug
>          Components: camel-mail
>    Affects Versions: 2.10.2
>         Environment: mail-1.4.5.jar
>            Reporter: Marco Zapletal
>            Assignee: Christian Müller
>             Fix For: 2.10.5, 2.11.1, 2.12.0
> 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:

View raw message