port vs service
I am writing a multi-threaded jax-ws client. I initially created a commons pool of portTypes for my service to consume and it uses them effectively. This model falls short because there is no way to validate the portType(that I can figure out anyhow?), to ensue the connection is still valid. Then I started thinking. Where is the connection overhead? Is it on the creation of the service, or on the creation of the portType? If it is on the service, do I have to "close" the portType to close the connection, or just let the gc collect it with the other garbage?
If anyone knows how these two work I would be incredibly grateful for your in-site.
Technology and Planning