Hi,

I have one question regarding the handling of the generated Java client code.

To call a web service, I use the following code:

      AServiceStub stub = new AServiceStub("http://....";);
      response = stub.methodeToCall(paramIn);

My question is: Do I have to create the stub every time when I call a webservice or can I create the stub only once and use it over and over again? If I can reuse the stub, whats about mutiple thread calling web services? What is the best practice?

Thanks in advance for your help.

Mit freundlichen Grüßen

Boris Klug

--
Boris Klug
Debeka-Hauptverwaltung
Abteilung BO/Q
Ferdinand-Sauerbruch-Str. 18
56058 Koblenz

Telefon: (0261) 498-3806
Telefax: (0261) 498-1541

E-Mail: [email protected]
Internet: www.debeka.de

Debeka Krankenversicherungsverein a. G., AmtsG Koblenz: HRB 125
Debeka Lebensversicherungsverein a. G., AmtsG Koblenz: HRB 141
Debeka Allgemeine Versicherung AG, AmtsG Koblenz: HRB 2300
Debeka Pensionskasse AG, AmtsG Koblenz: HRB 6683
Vorstand: Uwe Laue (Vorsitzender), Rolf Florian, Roland Weber,
Thomas Brahm, Dr. Peter Görg
Aufsichtsratsvorsitzender: Peter Greisler
Sitz Koblenz am Rhein

Debeka Bausparkasse Aktiengesellschaft, Amtsgericht Koblenz: HRB 1114
Vorstand: Jörg Phlippen, Dirk Botzem
Aufsichtsratsvorsitzender: Peter Greisler
Sitz Koblenz am Rhein

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to