Return-Path: Delivered-To: apmail-ws-axis-user-archive@ws.apache.org Received: (qmail 50385 invoked by uid 500); 26 Aug 2003 11:40:08 -0000 Mailing-List: contact axis-user-help@ws.apache.org; run by ezmlm Precedence: bulk Reply-To: axis-user@ws.apache.org list-help: list-unsubscribe: list-post: Delivered-To: mailing list axis-user@ws.apache.org Received: (qmail 50357 invoked from network); 26 Aug 2003 11:40:08 -0000 Message-ID: <000901c36bc7$538ab8d0$c407840a@Darek> From: "Dariusz Czyrnek" To: Subject: axis, connection refused ? Date: Tue, 26 Aug 2003 13:43:53 +0200 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-2" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2600.0000 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000 X-Virus-Scanned: by amavisd-new at ComArch X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N Hi, I deployed simple web serice (Calculator) using wsdd. Then i have a client in java which is trying to invoke add method of this service 30 times like that: (..i am trying to pretend 30 users clicking add button ..) ... for ( int i = 0 ; i < 30 ; i++) { Zad z = new Zad(i1.intValue(), i2.intValue()); z.start(); } ... class Zad extends Thread { int a, b; public Zad(int a, int b) { this.a = a; this.b = b; } public void run() { try { String endpoint = "http://localhost:8080/axis/services/C"; Integer i1 = new Integer(a); Integer i2 = new Integer(b); Service service = new Service(); Call call = (Call) service.createCall(); call.setTargetEndpointAddress( new java.net.URL(endpoint) ); call.setOperationName( "add" ); call.addParameter( "op1", XMLType.XSD_INT, ParameterMode.IN ); call.addParameter( "op2", XMLType.XSD_INT, ParameterMode.IN ); call.setReturnType( XMLType.XSD_INT ); Integer ret = (Integer)call.invoke( new Object [] { i1, i2 }); System.out.println("Got result : " + ret); }catch(Exception e) { e.printStackTrace(); } } } but i've got an Exception after some well done adds Got result: 2 Got result: 2 ... Got result: 2 Got result: 2 AxisFault .... stackTrace: java.net.ConnectionException: Connection refuse: connect ..... If anyone know, am i able to invoke 100 add methods (of my calculator service) at one time? soppose it is a public service and 100 users at one time would like to add some integers. darek