Java Mailing List Archive

http://www.junlu.com/

Home » Home (12/2007) » Tomcat Users »

RE: Threaded servlets okay in a compliant container?

Ralph Einfeldt

2004-01-05

Replies:


The servlet has access to all information inside the container/context
that may be needed to do the job. For an external job this can be much
harder. (Iterate over all sessions to do something with them, access
attributes with application scope, access attributes from server.xml/
web.xml) It's also easier to protect resources from concurrent
access (to synchronize them if nessesary).

The actions are triggered locally, the access to the servlet is
restricted to local hosts.

> -----Original Message-----
> From: Nikola Milutinovic [mailto:Nikola.Milutinovic@(protected)]
> Sent: Monday, January 05, 2004 12:19 PM
> To: Tomcat Users List
> Subject: Re: Threaded servlets okay in a compliant container?
>
>
> Why is it easier to do those things from a Servlet, than a
> regular shell script?
>

---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@(protected)
For additional commands, e-mail: tomcat-user-help@(protected)



©2008 junlu.com - Jax Systems, LLC, U.S.A.