kovica
kovica

Reputation: 2583

JAX-WS handle client disconnect on server

I'm using Glassfish 3.1.2.2 that supports JEE 6. We have a JAX-WS web service and a client. The client has timeouts set so that is disconnect after 30 seconds. Is there a way to detect when a client gets a timeout on server? Is there a way to detect when client disconnects from server?

Upvotes: 2

Views: 331

Answers (1)

user1134181
user1134181

Reputation:

As far as I know, you could not detect that the client disconnected from server without trying to perform reading or writing. To determine that the client is disconnected the server must send a packet. If the connection is closed will be thrown IOException.

Upvotes: 1

Related Questions