uCosminexus Application Server, Web Service Development Guide

[Contents][Glossary][Index][Back][Next]

3.6.4 Notes

This subsection describes the notes for implementing Web Service clients.

Organization of this subsection
(1) Reusing an object
(2) Setting a proxy, SSL connection, and basic authentication
(3) Notes for the Windows environment

(1) Reusing an object

The generation of a service class, port, and dispatch requires processing cost, so we recommend that you use the injection (only for the stub-based Web Service clients) or reuse the objects. For reusing the objects, see each of the following sections:

(2) Setting a proxy, SSL connection, and basic authentication

As and when required, specify the settings for a proxy, SSL connection, and the basic authentication in the execution environment of Web Service clients. For details, see each of the following sections:

(3) Notes for the Windows environment

In the environment in which you send a large number of requests from the Web Service client, the following exception might be recorded in some cases:

java.net.BindException: Address already in use: connect [errno=10048, syscall=select]

For example, an exception occurs when large number of requests reach the Web Service client that is implemented as a servlet.

In such a case, revise either one or both of the following values:

For example, revise the settings of MaxUserPort and TcpTimedWaitDelay in the registry. However, the specifications differ depending on the OS version, edition, and the application status of the security update program, and therefore, see the documentation of each OS for details. Also, you must note that the settings affect the entire OS.