JBoss eap 6,JBossws-cxf 4 Closing the ws port

Latest response

Hello, I am working respecting the JAX-WS specification and would like to know if there is any method to close the port.

With the metro WS, I can use this

((com.sun.xml.ws.Closeable) port); 

Is there any need to close the port especially for performance reasons?

Thanks.

Responses

No. A connection is made over the protocol and the App server handles the underlying connection.

OK. But is there any possibility to enforce the call of port.close().

I found this [1] which may be of help. But as far as JBoss + CXF is concerned you don't need to this. It seems like it's a very specific thing to Metro and perhaps if you are using a standalone WS client it might be handy, but if the connection is being handled by JBoss then I don't see why you would want to do this and add complexity for no reason.

[1] http://stackoverflow.com/questions/3807095/is-it-necessary-to-close-jax-ws-port