David, you can have wget/Scheduled task on Win box
-Original Message-
From: David Wall [mailto:[EMAIL PROTECTED]
Sent: 05 2004 . 20:54
To: Tomcat Users List
Subject: Re: Threaded servlets okay in a compliant container?
The use of a cron job that does a WGET on a URL that triggers
to deal with threads and the job
runs inside the servlet environment.
-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: Wednesday, December 31, 2003 1:46 AM
To: Tomcat Users List
Subject: Re: Threaded servlets okay in a compliant container?
If we use our own
Ralph Einfeldt wrote:
- Nobody (the spec included) prevents you from creating threads
You just have to follow some rules.
Yes, but it should make you think twice before indulging in something like that.
It also might prevent re-inventing the wheel.
- Besides creating threads I prefer to use
: Monday, January 05, 2004 11:56 AM
To: Tomcat Users List
Subject: Re: Threaded servlets okay in a compliant container?
Why would a cron triggered job benefit from Servlet container
environment?
Servlets are mainly for HTTP client/server interaction. Cron
jobs are for no interaction.
I could
Ralph Einfeldt wrote:
The cronjob is requesting an url with wget
and triggers tis way a servlet.
I understood the mechanism being used, I did not understand the benefit.
That's easy and sufficient to do regular jobs
like sending newsletters, cleaning up files,
that don't require any
12:19 PM
To: Tomcat Users List
Subject: Re: Threaded servlets okay in a compliant container?
Why is it easier to do those things from a Servlet, than a
regular shell script?
-
To unsubscribe, e-mail: [EMAIL PROTECTED
Ralph Einfeldt wrote:
The servlet has access to all information inside the container/context
that may be needed to do the job. For an external job this can be much
harder. (Iterate over all sessions to do something with them, access
attributes with application scope, access attributes from
The use of a cron job that does a WGET on a URL that triggers the background
processing sounds nice, but what's the process that triggers that on a
Windows box that doesn't have cron? A huge power of our application is that
it's written in Java and we can run it easily on Windows or Linux or
Howdy,
One thing to note is that a servlet container and a J2EE server are not
the same. Tomcat is the former but not the latter. Weblogic,
websphere, jboss, etc. are the latter. They implement the whole J2EE
spec which places more restrictions on thread creation by applications:
read the spec
Also ... (From 2.3 spec)
In SRV.1.2 What is a Servlet Container?
... For example, high-end application servers may limit the creation of a
Thread object, to insure that other components of the container are not
negatively impacted.
SRV.9.11 Web Application Environment
... Such servlet
SRV.9.11 says the same thing in the 2.4 spec so it's still not defined
as of Tomcat 5 either.
--- Tim Funk [EMAIL PROTECTED] wrote:
Also ... (From 2.3 spec)
In SRV.1.2 What is a Servlet Container?
... For example, high-end application servers may limit the creation
of a
Thread object, to
PROTECTED]
Sent: Tuesday, December 30, 2003 1:10 PM
To: Tomcat Users List
Subject: Re: Threaded servlets okay in a compliant container?
SRV.9.11 says the same thing in the 2.4 spec so it's still
not defined as of Tomcat 5 either.
--- Tim Funk [EMAIL PROTECTED] wrote:
Also ... (From 2.3
If we use our own connection pools and handle our own transactions
within the db, is there likely any issue with using other threads to do
background tasks that touch the database? I can see there may be issues
in a regular EJB world with declarative transactions and such (does EJB
have its
13 matches
Mail list logo