why not set up a URL that your scheduler can call?  
http://myserver/scheduler/doTask <http://myserver/scheduler/doTask> 
 
This could run a servlet that would do the task. You can set up filters or
valves to restrict access to localhost.
 
Charlie

-----Original Message-----
From: Nathan Smith [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, November 20, 2002 4:06 PM
To: Tomcat Users List
Subject: Not using the usual/ normal process, is their another way of
executing a servlet?


    I have a schedule program which takes a task string being some program
or servlet and needs to be able to run the program or task in the background
in it's own thread.
 
The problem is that in this case the servlet is not being executed through a
browser, a jsp page, or from another servlet. 
 
I was wondering if anybody had used or tried another way of running a
servlet. I do have an instance of the starting servlet that starts up the
background scheduler, so I have access to that servlets methods and the
servlet context and servlet config. I am actually trying to get the URL
using the servlet instance.getServletContext().getResource(task); I have no
idea if this will work and what I can then do after I have created the URL
object.
 
Any ideas?
 
 
Nathan.

Reply via email to