VMware {code} Community
danielh
Contributor
Contributor
Jump to solution

Java SDK and connection timeout to VC

Hello,

I've a question about connection timeouts to the VC. During long running tasks (e.g. parallel cloning of vm's) it's possible to get from the VC timeouts. It is possible to set the timeout of the VC to a higher value?

The exception looks like:

java.net.ConnectException: Connection timed out

If this exception occurs in my program, the tasks are running further in the VC. But I'll need to know the result of the finished tasks in the VC. Waiting for the status success in my program, the timeout to the vc occurs.

Does anybody know how to set the timeout to the VC?

kind regards

daniel

0 Kudos
1 Solution

Accepted Solutions
dmhaynes
Enthusiast
Enthusiast
Jump to solution

The timeout is set up as part of the Axis implementation.

((org.apache.axis.client.Stub)service).setTimeout(milliseconds);

should do it. Beware that there is also a socket timeout typically enforced by your O/S which may also need to be addressed.

(This answer was originally supplied by vtorch)

View solution in original post

0 Kudos
1 Reply
dmhaynes
Enthusiast
Enthusiast
Jump to solution

The timeout is set up as part of the Axis implementation.

((org.apache.axis.client.Stub)service).setTimeout(milliseconds);

should do it. Beware that there is also a socket timeout typically enforced by your O/S which may also need to be addressed.

(This answer was originally supplied by vtorch)

0 Kudos