• Post Reply Bookmark Topic Watch Topic
  • New Topic

reusing port object  RSS feed

 
jyoti j singh
Greenhorn
Posts: 16
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
existing code



new code


if java.io.IOException or javax.xml.ws.WebServiceException occurs at step 2 (of new code), is it safe to invalidate (expel) the portProxy from pool (make it eligible for GC) or it's okay to return portProxy back to pool.
for example, if publisher is unassailable for one minute, there would be exception, is it okay to return portProxy back to pool or better to take out that object from pool.

thanks a lot in advance .
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!