You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tomee.apache.org by "Romain Manni-Bucau (JIRA)" <ji...@apache.org> on 2014/10/17 08:41:34 UTC
[jira] [Resolved] (TOMEE-1413) Sending Email with TomEE takes up
to 25 times longer than plain Tomcat 7
[ https://issues.apache.org/jira/browse/TOMEE-1413?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Romain Manni-Bucau resolved TOMEE-1413.
---------------------------------------
Resolution: Invalid
Well this is purely a config issue on your side
for instance try:
{code}
private HtmlEmail newEmail() throws EmailException {
HtmlEmail email = new HtmlEmail();
email.setFrom(USERNAME + "@gmail.com");
final Session session = Session.getDefaultInstance(
new Properties() {{
setProperty("mail.smtp.auth", "true");
setProperty("mail.smtp.starttls.enable", "true");
setProperty("mail.smtp.host", "smtp.gmail.com");
setProperty("mail.smtp.port", "587");
}},
new Authenticator() {
@Override
protected PasswordAuthentication getPasswordAuthentication() {
return new PasswordAuthentication(USERNAME, PASSWORD);
}
});
email.setMailSession(session);
return email;
}
{code}
time are comparable between javax.mail and geronimo
> Sending Email with TomEE takes up to 25 times longer than plain Tomcat 7
> --------------------------------------------------------------------------
>
> Key: TOMEE-1413
> URL: https://issues.apache.org/jira/browse/TOMEE-1413
> Project: TomEE
> Issue Type: Bug
> Affects Versions: 1.7.1
> Environment: Windows 7, Intel i3, Running Java 8
> Reporter: Nestor Hernandez Loli
> Priority: Blocker
> Attachments: test_email.zip
>
>
> Sending an HTML email with TomEE takes up to 25 times longer than plain Tomcat 7 with JavaMail
> Total time 4660 ms - Plain Tomcat 7
> Total time 117183 ms- TomEE 1.7.1 JAX-RS
>
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)