Return-Path: Delivered-To: apmail-ws-axis-user-archive@www.apache.org Received: (qmail 51708 invoked from network); 27 Aug 2003 09:23:53 -0000 Received: from daedalus.apache.org (HELO apache.org) (208.185.179.12) by minotaur-2.apache.org with SMTP; 27 Aug 2003 09:23:53 -0000 Received: (qmail 47381 invoked by uid 500); 27 Aug 2003 09:13:41 -0000 Delivered-To: apmail-ws-axis-user-archive@ws.apache.org Received: (qmail 47331 invoked by uid 500); 27 Aug 2003 09:13:40 -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 11763 invoked from network); 27 Aug 2003 08:30:20 -0000 X-MimeOLE: Produced By Microsoft Exchange V6.0.5762.3 content-class: urn:content-classes:message Subject: RE: axis, connection refused ? MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-2" Content-Transfer-Encoding: quoted-printable Date: Wed, 27 Aug 2003 09:29:03 +0100 Message-ID: X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: axis, connection refused ? Thread-Index: AcNrxtH+UPgloHj/TF2OvAN4bUasOQArjsPQ From: "Keith Hatton" To: X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N Hi Darek, This is a problem with your web server, not Axis. You will need to check the server documentation on how to make more = threads available to the listener. For example, on Weblogic you can set = up a separate queue, and I know there is something similar (not sure of = the details) on JBoss. Hope this helps Keith -----Original Message----- From: Dariusz Czyrnek [mailto:dariusz.czyrnek@praktykant.comarch.pl] Sent: 26 August 2003 12:44 To: axis-user@ws.apache.org Subject: axis, connection refused ? 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 =3D 0 ; i < 30 ; i++) { Zad z =3D new Zad(i1.intValue(), i2.intValue()); z.start(); } ... class Zad extends Thread { int a, b; public Zad(int a, int b) { this.a =3D a; this.b =3D b; } public void run() { try { String endpoint =3D "http://localhost:8080/axis/services/C"; Integer i1 =3D new Integer(a); Integer i2 =3D new Integer(b); Service service =3D new Service(); Call call =3D (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 =3D (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