>public class TestTomcat extends Thread{
>
> private static int request=0;
>
> public void run() {
> try{
> String inputLine;
> URL url = new
> URL("http://localhost:8080/examples/servlet/TestTomcat?request=" + ++request);
> URLConnection connection = url.openConnection();
> connection.setDoOutput(true);
> BufferedReader inp = new BufferedReader(
> new InputStreamReader(
> connection.getInputStream()));
> while ((inputLine = inp.readLine()) != null)
> System.out.println(inputLine);
>
> inp.close();
> }
> catch(Exception e){}
System.out.println(e);
> }
>
>
> public static void main(String[] args) {
>
> int m=0;
> try{
> for (int p=0;p<100;p++){
> for(m=0;m<5;m++){
> TestTomcat rg= new TestTomcat();
> rg.start();
> }
> Thread.sleep(1000);
> }
> }
> catch(Exception e){}
System.out.println(e);
> }
>
>}
--
To unsubscribe: <mailto:[EMAIL PROTECTED]>
For additional commands: <mailto:[EMAIL PROTECTED]>
Troubles with the list: <mailto:[EMAIL PROTECTED]>