"Craig R. McClanahan" wrote:
>
> Brian Zimbelman wrote:
>
> >
> >
> > Guys,
> >
> > Why is it that people seem to want to make everything a servlet? What
> > about this cron class is servlet like? Is it getting invoked by a http
> > request? When I wrote our cron-like utility (very basic replacement
> > that handles what we need, doesn't have all the bells and whistles of
> > cron, runs on all platforms, controlled via our database not crontab
> > files) I wrote it as a Java application.
> >
> > Just curious as to what I'm missing, as I tend to put everything that
> > is not about handling requests from the user and building HTML
> > responses in something other than the servlets (clean separation of
> > the model and the view in my mind).
> >
> > Thanks,
> > Brian
> >
>
> I agree with Brian. Instead of "a servlet to run background cron jobs",
> I would rather see "a background job runner that can be administered
> with servlets". The difference is subtle, but important -- not every
> application in the world needs to be a servlet itself.
>
agreed ... i just wrapped the invocation of the JobManager
code i stitched together with a servlet so that it started
up with the rest of the app. i didn't really want to create
a cron entry to start a yet-another cron-like process (the
point of the exercise was to try to get rid of as many of
the cron entries as possible as the team tended to forget
about them ... till they broke or needed a little tlc).
so, i believe what i did was as you suggest ... only the
only ?admin? feature expressed via the servlet api was the
"create" hook. the servlet aware element of the JobManager
could do more then just fire it up but could instead be an
api ... i believe that is what your aiming for. i'm sure
that's the conclusion i would've eventually come to had i
stayed with the project. it feels right to me.
> Craig McClanahan
- james
>
> ___________________________________________________________________________
> To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
> of the message "signoff SERVLET-INTEREST".
>
> Archives: http://archives.java.sun.com/archives/servlet-interest.html
> Resources: http://java.sun.com/products/servlet/external-resources.html
> LISTSERV Help: http://www.lsoft.com/manuals/user/user.html
___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".
Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html