This is also a perfect use of servlets - they're not just for WWW
services, you could write just about any service which runs as a daemon as
a servlet. You might have a bit of trouble finding a servlet engine which
fits this niche well - perhaps a modification of the Apache JServ
environment would do.
- donald
On Mon, 4 Jan 1999, Christopher Hinds wrote:
> This might be a perfect use for JINI technology.
> Image a JVM loaded a system boot as a daemon can be sent
> java class to execute through a special class loader that is always
> running.
>
> Cheers
> Chris
>
> Context Grey wrote:
>
> > I think this is a good idea-
> >
> > I've wanted to write little Unix-style utilities in java, but the
> > startup overhead is quite large. As such a script written in
> > tcl or something else "feels" much faster, even though in fact
> > Java is considerably faster (some things like tcl are *thousands*
> > of times slower than C, rather than being merely 10x).
> >
> > Some once told me this is the sort of thing you could do in Lisp &
> > Scheme-
> > i.e. create a new namespace, run a program in it, then discard the
> > space and garbage collect.
> >
> > In java, one has some control over the class loader. Does anyone know
> > if it is possible to write a "custom sandbox" to run a program in & then
> > get rid of this space?
>