You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Peter Vertes <pv...@nyc.rr.com> on 2003/09/12 23:46:19 UTC

Java Mail Question

Hello All,

    Quick question about Tomcat and Java Mail.  When I create a JNDI
mail resource will it act like a Connection Pool ?  Meaning, will there
always be a session logged into the specified SMTP server or will Tomcat
only log into the SMTP server once I explicitly ask for a session ? 
Thanks in advance...

-Pete

-- 
perl -e 'print pack("H*", "70766572746573406E79632E72722E636F6D0A")'

Re: Java Mail Question

Posted by Christopher Williams <cc...@ntlworld.com>.
Java will only contact the SMTP server when you call "Transport.send()".

----- Original Message ----- 
From: "Peter Vertes" <pv...@nyc.rr.com>
To: "Tomcat Users List" <to...@jakarta.apache.org>
Sent: Friday, September 12, 2003 10:46 PM
Subject: Java Mail Question


> Hello All,
> 
>     Quick question about Tomcat and Java Mail.  When I create a JNDI
> mail resource will it act like a Connection Pool ?  Meaning, will there
> always be a session logged into the specified SMTP server or will Tomcat
> only log into the SMTP server once I explicitly ask for a session ? 
> Thanks in advance...
> 
> -Pete
> 
> -- 
> perl -e 'print pack("H*", "70766572746573406E79632E72722E636F6D0A")'
>