You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by "Wax, Michael" <mw...@vantra.com> on 2001/11/07 02:09:47 UTC

JavaMail

In addition to SMTP, I have written classes for internal mail types.  Where
do I put these in Tomcat to make them work?  If I add them to the mail jar,
Tomcat (its JWM) complains about NoClassDefFound errors for each class
referenced in the new mail classes.  I don't want to put my entire
application in the mail jar.  Any ideas?

--
To unsubscribe:   <ma...@jakarta.apache.org>
For additional commands: <ma...@jakarta.apache.org>
Troubles with the list: <ma...@jakarta.apache.org>


RE: JavaMail

Posted by Martin van den Bemt <ma...@isallineed.org>.
Doesn't hurt too much, if you, as if you do like Craig suggested : start a
cron job or what we do, is about 6 independend processes which run under a
timer, which doesn't really hurt preformance at all (we have a big machine
and 2 cpu's). The cpu while waiting is not even seen on top (the lowest
which I see in top is 0.1%), so not too bad. My (single) webapp is hurting
the machine more than my jobs running together..

Mvgr,
Martin

> -----Original Message-----
> From: Brandon Cruz [mailto:bcruz@norvax.com]
> Sent: Wednesday, November 07, 2001 4:42 PM
> To: Tomcat Users List
> Subject: RE: JavaMail
>
>
> Hello,
>
> I am trying to use Java Mail to allow visitors to send an email
> reminder to
> themselves at a certain time in the future.
>
> I guess I would need some type of cronjob running, or a timer of
> some sort,
> that can check the database and see who needs the email for that day.
>
> If I use a timer with an application scope, and there are a couple hundred
> web applications on my server, will that severely limit performance?  My
> guess is yes.
>
> Has anyone done something like this before, any recommendations?
>
> Thanks!
>
> Brandon
>
> -----Original Message-----
> From: craigmcc@localhost [mailto:craigmcc@localhost]On Behalf Of Craig
> R. McClanahan
> Sent: Tuesday, November 06, 2001 8:09 PM
> To: Tomcat Users List
> Subject: Re: JavaMail
>
>
> If you need your classes in only a single web app, put them in a JAR file
> in the "/WEB-INF/lib" directory of your webapp.  Otherwise, put them in
> the $TOMCAT_HOME/lib directory to make them available to all webapps.
>
> Craig
>
>
> On Tue, 6 Nov 2001, Wax, Michael wrote:
>
> > Date: Tue, 6 Nov 2001 17:09:47 -0800
> > From: "Wax, Michael" <mw...@vantra.com>
> > Reply-To: Tomcat Users List <to...@jakarta.apache.org>
> > To: "'tomcat-user@jakarta.apache.org'" <to...@jakarta.apache.org>
> > Subject: JavaMail
> >
> > In addition to SMTP, I have written classes for internal mail types.
> Where
> > do I put these in Tomcat to make them work?  If I add them to the mail
> jar,
> > Tomcat (its JWM) complains about NoClassDefFound errors for each class
> > referenced in the new mail classes.  I don't want to put my entire
> > application in the mail jar.  Any ideas?
> >
> > --
> > To unsubscribe:   <ma...@jakarta.apache.org>
> > For additional commands: <ma...@jakarta.apache.org>
> > Troubles with the list: <ma...@jakarta.apache.org>
> >
> >
>
>
> --
> To unsubscribe:   <ma...@jakarta.apache.org>
> For additional commands: <ma...@jakarta.apache.org>
> Troubles with the list: <ma...@jakarta.apache.org>
>
>
>
>
> --
> To unsubscribe:   <ma...@jakarta.apache.org>
> For additional commands: <ma...@jakarta.apache.org>
> Troubles with the list: <ma...@jakarta.apache.org>
>
>


--
To unsubscribe:   <ma...@jakarta.apache.org>
For additional commands: <ma...@jakarta.apache.org>
Troubles with the list: <ma...@jakarta.apache.org>


RE: Running a task in Tomcat 3.2.x

Posted by Brandon Cruz <bc...@norvax.com>.
Hello,

Sorry, accidentally posted this with the wrong subject last time.

I am trying to use Java Mail to allow visitors to send an email reminder to
themselves at a certain time in the future.

I guess I would need some type of cronjob running, or a timer of some sort,
that can check the database and see who needs the email for that day.

If I use a timer with an application scope, and there are a couple hundred
web applications on my server, will that severely limit performance?  My
guess is yes.

Has anyone done something like this before, any recommendations?

Thanks!

Brandon

-----Original Message-----
From: craigmcc@localhost [mailto:craigmcc@localhost]On Behalf Of Craig
R. McClanahan
Sent: Tuesday, November 06, 2001 8:09 PM
To: Tomcat Users List
Subject: Re: JavaMail


If you need your classes in only a single web app, put them in a JAR file
in the "/WEB-INF/lib" directory of your webapp.  Otherwise, put them in
the $TOMCAT_HOME/lib directory to make them available to all webapps.

Craig


On Tue, 6 Nov 2001, Wax, Michael wrote:

> Date: Tue, 6 Nov 2001 17:09:47 -0800
> From: "Wax, Michael" <mw...@vantra.com>
> Reply-To: Tomcat Users List <to...@jakarta.apache.org>
> To: "'tomcat-user@jakarta.apache.org'" <to...@jakarta.apache.org>
> Subject: JavaMail
>
> In addition to SMTP, I have written classes for internal mail types.
Where
> do I put these in Tomcat to make them work?  If I add them to the mail
jar,
> Tomcat (its JWM) complains about NoClassDefFound errors for each class
> referenced in the new mail classes.  I don't want to put my entire
> application in the mail jar.  Any ideas?
>
> --
> To unsubscribe:   <ma...@jakarta.apache.org>
> For additional commands: <ma...@jakarta.apache.org>
> Troubles with the list: <ma...@jakarta.apache.org>
>
>


--
To unsubscribe:   <ma...@jakarta.apache.org>
For additional commands: <ma...@jakarta.apache.org>
Troubles with the list: <ma...@jakarta.apache.org>




--
To unsubscribe:   <ma...@jakarta.apache.org>
For additional commands: <ma...@jakarta.apache.org>
Troubles with the list: <ma...@jakarta.apache.org>




--
To unsubscribe:   <ma...@jakarta.apache.org>
For additional commands: <ma...@jakarta.apache.org>
Troubles with the list: <ma...@jakarta.apache.org>


RE: JavaMail

Posted by "Craig R. McClanahan" <cr...@apache.org>.
Why not run a *real* cron job (or equivalent scheduled task under
Windows)?  I don't see why this really needs to be done inside the Tomcat
process.

Craig McClanahan


On Wed, 7 Nov 2001, Brandon Cruz wrote:

> Date: Wed, 7 Nov 2001 09:41:54 -0600
> From: Brandon Cruz <bc...@norvax.com>
> Reply-To: Tomcat Users List <to...@jakarta.apache.org>
> To: Tomcat Users List <to...@jakarta.apache.org>
> Subject: RE: JavaMail
>
> Hello,
>
> I am trying to use Java Mail to allow visitors to send an email reminder to
> themselves at a certain time in the future.
>
> I guess I would need some type of cronjob running, or a timer of some sort,
> that can check the database and see who needs the email for that day.
>
> If I use a timer with an application scope, and there are a couple hundred
> web applications on my server, will that severely limit performance?  My
> guess is yes.
>
> Has anyone done something like this before, any recommendations?
>
> Thanks!
>
> Brandon
>
> -----Original Message-----
> From: craigmcc@localhost [mailto:craigmcc@localhost]On Behalf Of Craig
> R. McClanahan
> Sent: Tuesday, November 06, 2001 8:09 PM
> To: Tomcat Users List
> Subject: Re: JavaMail
>
>
> If you need your classes in only a single web app, put them in a JAR file
> in the "/WEB-INF/lib" directory of your webapp.  Otherwise, put them in
> the $TOMCAT_HOME/lib directory to make them available to all webapps.
>
> Craig
>
>
> On Tue, 6 Nov 2001, Wax, Michael wrote:
>
> > Date: Tue, 6 Nov 2001 17:09:47 -0800
> > From: "Wax, Michael" <mw...@vantra.com>
> > Reply-To: Tomcat Users List <to...@jakarta.apache.org>
> > To: "'tomcat-user@jakarta.apache.org'" <to...@jakarta.apache.org>
> > Subject: JavaMail
> >
> > In addition to SMTP, I have written classes for internal mail types.
> Where
> > do I put these in Tomcat to make them work?  If I add them to the mail
> jar,
> > Tomcat (its JWM) complains about NoClassDefFound errors for each class
> > referenced in the new mail classes.  I don't want to put my entire
> > application in the mail jar.  Any ideas?
> >
> > --
> > To unsubscribe:   <ma...@jakarta.apache.org>
> > For additional commands: <ma...@jakarta.apache.org>
> > Troubles with the list: <ma...@jakarta.apache.org>
> >
> >
>
>
> --
> To unsubscribe:   <ma...@jakarta.apache.org>
> For additional commands: <ma...@jakarta.apache.org>
> Troubles with the list: <ma...@jakarta.apache.org>
>
>
>
>
> --
> To unsubscribe:   <ma...@jakarta.apache.org>
> For additional commands: <ma...@jakarta.apache.org>
> Troubles with the list: <ma...@jakarta.apache.org>
>
>


--
To unsubscribe:   <ma...@jakarta.apache.org>
For additional commands: <ma...@jakarta.apache.org>
Troubles with the list: <ma...@jakarta.apache.org>


RE: JavaMail

Posted by Brandon Cruz <bc...@norvax.com>.
Hello,

I am trying to use Java Mail to allow visitors to send an email reminder to
themselves at a certain time in the future.

I guess I would need some type of cronjob running, or a timer of some sort,
that can check the database and see who needs the email for that day.

If I use a timer with an application scope, and there are a couple hundred
web applications on my server, will that severely limit performance?  My
guess is yes.

Has anyone done something like this before, any recommendations?

Thanks!

Brandon

-----Original Message-----
From: craigmcc@localhost [mailto:craigmcc@localhost]On Behalf Of Craig
R. McClanahan
Sent: Tuesday, November 06, 2001 8:09 PM
To: Tomcat Users List
Subject: Re: JavaMail


If you need your classes in only a single web app, put them in a JAR file
in the "/WEB-INF/lib" directory of your webapp.  Otherwise, put them in
the $TOMCAT_HOME/lib directory to make them available to all webapps.

Craig


On Tue, 6 Nov 2001, Wax, Michael wrote:

> Date: Tue, 6 Nov 2001 17:09:47 -0800
> From: "Wax, Michael" <mw...@vantra.com>
> Reply-To: Tomcat Users List <to...@jakarta.apache.org>
> To: "'tomcat-user@jakarta.apache.org'" <to...@jakarta.apache.org>
> Subject: JavaMail
>
> In addition to SMTP, I have written classes for internal mail types.
Where
> do I put these in Tomcat to make them work?  If I add them to the mail
jar,
> Tomcat (its JWM) complains about NoClassDefFound errors for each class
> referenced in the new mail classes.  I don't want to put my entire
> application in the mail jar.  Any ideas?
>
> --
> To unsubscribe:   <ma...@jakarta.apache.org>
> For additional commands: <ma...@jakarta.apache.org>
> Troubles with the list: <ma...@jakarta.apache.org>
>
>


--
To unsubscribe:   <ma...@jakarta.apache.org>
For additional commands: <ma...@jakarta.apache.org>
Troubles with the list: <ma...@jakarta.apache.org>




--
To unsubscribe:   <ma...@jakarta.apache.org>
For additional commands: <ma...@jakarta.apache.org>
Troubles with the list: <ma...@jakarta.apache.org>


Re: JavaMail

Posted by "Craig R. McClanahan" <cr...@apache.org>.
If you need your classes in only a single web app, put them in a JAR file
in the "/WEB-INF/lib" directory of your webapp.  Otherwise, put them in
the $TOMCAT_HOME/lib directory to make them available to all webapps.

Craig


On Tue, 6 Nov 2001, Wax, Michael wrote:

> Date: Tue, 6 Nov 2001 17:09:47 -0800
> From: "Wax, Michael" <mw...@vantra.com>
> Reply-To: Tomcat Users List <to...@jakarta.apache.org>
> To: "'tomcat-user@jakarta.apache.org'" <to...@jakarta.apache.org>
> Subject: JavaMail
>
> In addition to SMTP, I have written classes for internal mail types.  Where
> do I put these in Tomcat to make them work?  If I add them to the mail jar,
> Tomcat (its JWM) complains about NoClassDefFound errors for each class
> referenced in the new mail classes.  I don't want to put my entire
> application in the mail jar.  Any ideas?
>
> --
> To unsubscribe:   <ma...@jakarta.apache.org>
> For additional commands: <ma...@jakarta.apache.org>
> Troubles with the list: <ma...@jakarta.apache.org>
>
>


--
To unsubscribe:   <ma...@jakarta.apache.org>
For additional commands: <ma...@jakarta.apache.org>
Troubles with the list: <ma...@jakarta.apache.org>