How can I configure Tomcat to call init() of Servlet?

2006-04-01 Thread Meryl Silverburgh
Hi, How can I configure Tomcat to call init() of Servlet as part of Tomcat's initialization? right now, the init() of a Servlet is called when the servlet is called the first time (e.g. thru a HTTP request from a browser)? How can I config tomcat to call the init() of a servlet as part of Tomcat's

What is the best way to send back a file as http response?

2006-04-02 Thread Meryl Silverburgh
Hi all, Can you please tell me what is the best way to send back a file as http response in a Servlet? Should I use NIO? Or I just use the normal, open the file, read it a chuck at a time and write that to the servlet output stream? Thank you.

How can I limit the number of instance my servlet can server concurrently?

2006-04-03 Thread Meryl Silverburgh
Is it possible to limit Tomcat to just handle 10 concurrently request to my servlet? for all others (11 and onward), it will queue them up, and serve them only when one of the currently-serving request is done? Thank you. - To un

Why Mozilla sends 2 more requests if the respond is an image

2006-04-05 Thread Meryl Silverburgh
Hi, I have a Java Servlet which returns an image for each request. But when I use mozilla to access that Java Servlet, it also sends 2 more requests after it get the respond image back. Can you pleae tell me why? Here is the http log from live http header extension? http://localhost:8080/myWAR/

Using tomcat as proxy server

2007-11-02 Thread Meryl Silverburgh
HI, Can you please tell me where can i find documentation for setting up Tomcat as a proxy server? And how can I return a local file in http response if the url ends with '.mp3'? Thank you. - To start a new topic, e-mail: users