This is really not a Jess question; removing Jess from the equation
would still leave the same issues, I think. I can give you some
ideas, but I think a general programming forum like
saloon.javaranch.com is a better place to discuss this.
If the program has to run at exactly the same time each month, then
it has to run on a computer which is on all the time. If you don't
have one, then it has to be offsite somewhere, and yes, Web hosting
companies are one possibility. Another would be just a shell-access
hosting company, where you could just run a program using a cron job,
without the added complexity of the web app.
Then, of course, it might be hard for that program to affect
something for the user -- i.e., touch files on their own PC, or
report back to the user.
If it just has to run "whenever", like the first time each month the
user turns on their PC, then there are Windows tools that let you
schedule jobs in a cron-like fashion; if you set up a job for the
first of each month, then it would run when the PC was turned on for
the first time each month.
On Feb 11, 2007, at 6:22 PM, [EMAIL PROTECTED] wrote:
Hi,
I have a set of Jess rules which connects to a MySQL DB and at the
moment
I run this via a .java file that creates a Rete engine and does
what you
would expect. Now I need to deploy it so that it can run on a web
server
so I was going to embed it in either a servlet or a .jsp page but my
question is how can I schedule this so that it runs automatically
(e.g.
the first day of every month)? I thought about cron jobs to
schedule the
visiting of the url of the servlet/jsp page but I believe it only
works
for CGI/PHP scripts. I'm at a bit of loss because the running of
the Jess
rules has to be automatic and can't simple reside on a computer but
without this functionality my system wouldn't be much use if you
had to
run the Jess rules yourself or leave your PC on 365/24/7. And is the
servlet/jsp necessary as it will give no output to the user nor
needs any
input but just runs a set of rules in the background which either fire
thus executing a userfunction I've defined or doesn't fire, but I
can see
no other option to be able to run the Jess rules online. Thanks in
advance
and I'm open to any suggestions. Regards.
---------------------------------------------------------
Ernest Friedman-Hill
Advanced Software Research Phone: (925) 294-2154
Sandia National Labs FAX: (925) 294-2234
PO Box 969, MS 9012 [EMAIL PROTECTED]
Livermore, CA 94550 http://www.jessrules.com
--------------------------------------------------------------------
To unsubscribe, send the words 'unsubscribe jess-users [EMAIL PROTECTED]'
in the BODY of a message to [EMAIL PROTECTED], NOT to the list
(use your own address!) List problems? Notify [EMAIL PROTECTED]
--------------------------------------------------------------------