> On Wednesday 05 December 2001 10:50, Aaron Held wrote:
> > I would like to be able to fire off a long runing process from a
> > servlet and then detach it so I can close the page. Currently I am
> > experimenting by creating another independent small server process,
> > but is there some better way? I just started looking at TaskKit and
> What does your long running process do? You might be able to use a
> new thread rather than a separate process. The communication issues
> would be much simpler with threads.
I need to take a large text file, massage the data, import it, and then expire about 1 million rows. The import would be quick (via
the COPY command within postgres), but there are many indexes and rebuilding them is taking some time.I was originally playing with
a curses interface but they would like this to be web based as well.
There is a portal like main page to the app I am building so I have a nice spot to let them know the current progess of the data
imports, since this will be roughly an weekly process. (each client will get updated once per month, and there will be 5 initially)
> Do you need two way communication once it has been detached?
One Way only.
I need to have some sort of progess report. Once the data is all in postgres I can setup NOTIFY/LISTEN via the PgSQL interface get
some progress reports that way.
> I've been experimenting with an AdminServer for the experimental
> version of WebKit I'm working on. Its purpose is to allow
> interaction with a running WebKit process from a separate tool like a
> command line script that get status info. This isn't related to user
> sessions, TaskKit or any of that, but the general IPC issues might be
I'd like to see that AdminServer - I need some admin functionality similar to what there is in Enhydra (such as # users connected,
current session information, response times etc..)