<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<body link="#355491" alink="#4262a1" vlink="#355491" style="background: #e2e2e2; margin: 0; padding: 20px;">

<div>
        <table cellpadding="0" bgcolor="#FFFFFF" border="0" cellspacing="0" style="border: 1px solid #dadada; margin-bottom: 30px; width: 100%; -moz-border-radius: 6px; -webkit-border-radius: 6px;">
                <tbody>
                        <tr>

                                <td>

                                        <table border="0" cellpadding="0" cellspacing="0" bgcolor="#FFFFFF" style="border: solid 2px #ccc; background: #dadada; width: 100%; -moz-border-radius: 6px; -webkit-border-radius: 6px;">
                                                <tbody>
                                                        <tr>
                                                                <td bgcolor="#000000" valign="middle" height="58px" style="border-bottom: 1px solid #ccc; padding: 20px; -moz-border-radius-topleft: 3px; -moz-border-radius-topright: 3px; -webkit-border-top-right-radius: 5px; -webkit-border-top-left-radius: 5px;">
                                                                        <h1 style="color: #333333; font: bold 22px Arial, Helvetica, sans-serif; margin: 0; display: block !important;">
                                                                        <!-- To have a header image/logo replace the name below with your img tag -->
                                                                        <!-- Email clients will render the images when the message is read so any image -->
                                                                        <!-- must be made available on a public server, so that all recipients can load the image. -->
                                                                        <a href="http://community.jboss.org/index.jspa" style="text-decoration: none; color: #E1E1E1">JBoss Community</a></h1>
                                                                </td>

                                                        </tr>
                                                        <tr>
                                                                <td bgcolor="#FFFFFF" style="font: normal 12px Arial, Helvetica, sans-serif; color:#333333; padding: 20px;  -moz-border-radius-bottomleft: 4px; -moz-border-radius-bottomright: 4px; -webkit-border-bottom-right-radius: 5px; -webkit-border-bottom-left-radius: 5px;"><h3 style="margin: 10px 0 5px; font-size: 17px; font-weight: normal;">
    Re: Effective way of forming a WebService client
</h3>
<span style="margin-bottom: 10px;">
    created by <a href="http://community.jboss.org/people/rohit.macherla">Rohit Macherla</a> in <i>JBoss Web Services</i> - <a href="http://community.jboss.org/message/573991#573991">View the full discussion</a>
</span>
<hr style="margin: 20px 0; border: none; background-color: #dadada; height: 1px;">

<div class="jive-rendered-content"><p>Hi Scott,</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p> I have found a quite wierd solution. Actually, I just stumbled upon it. We were using NetBeans 6.0.1 for WebService development. The major issue was that threads were not released properly and still hung around for a lot of time with the Tomcat status as : <br/>GET /TargetServiceManagement-war/TargetService?wsdl HTTP/1.1</p><p>Another important one : Target WSDL parsing happening for each time a WS is invoked.</p><p>Shifting to NetBeans 6.8 has solved the issue. No other modifications were made to JBoss server. I have redeployed the code with NetBeans 6.0.1 and tested again and found that the threads still hung. But with NetBeans 6.8 code (no changes in the java files that we have written. None at all), no hung threads are noticed.</p><p>Supecting that there has to be some changes in XML files, I've compared their contents and there are changes in the jax-ws.xml. There are a lot of &lt;wsimport-options&gt; present in the NetBeans 6.8 version code, which probably might be stopping the re-parse of full WSDL.</p><p>The following are the options added in the new version jax-ws.xml :<br/>&#160;&#160;&#160;&#160;&#160; &lt;wsimport-options&gt;<br/>&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;wsimport-option&gt;<br/>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;wsimport-option-name&gt;extension&lt;/wsimport-option-name&gt;<br/>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;wsimport-option-value&gt;true&lt;/wsimport-option-value&gt;<br/>&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;/wsimport-option&gt;<br/>&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;wsimport-option&gt;<br/>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;wsimport-option-name&gt;verbose&lt;/wsimport-option-name&gt;<br/>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;wsimport-option-value&gt;true&lt;/wsimport-option-value&gt;<br/>&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;/wsimport-option&gt;<br/>&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;wsimport-option&gt;<br/><span>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;wsimport-option-name&gt;wsdlLocation&lt;/wsimport-option-name&gt;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;wsimport-option-value&gt;</span><a class="jive-link-external-small" href="http://JBOSS:8080/war/Service?wsdl" target="_blank">http://JBOSS:8080/war/Service?wsdl</a><span>&lt;/wsimport-option-value&gt;</span><br/>&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;/wsimport-option&gt;<br/>&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;wsimport-option&gt;<br/>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;wsimport-option-name&gt;xendorsed&lt;/wsimport-option-name&gt;<br/>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;wsimport-option-value&gt;true&lt;/wsimport-option-value&gt;<br/>&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;/wsimport-option&gt;<br/>&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;wsimport-option&gt;<br/>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;wsimport-option-name&gt;package&lt;/wsimport-option-name&gt;<br/>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;wsimport-option-value&gt;SOcreation&lt;/wsimport-option-value&gt;<br/>&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;/wsimport-option&gt;<br/>&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;wsimport-option&gt;<br/>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;wsimport-option-name&gt;target&lt;/wsimport-option-name&gt;<br/>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;wsimport-option-value&gt;2.1&lt;/wsimport-option-value&gt;<br/>&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;/wsimport-option&gt;<br/>&#160;&#160;&#160;&#160;&#160; &lt;/wsimport-options&gt;</p><p>I don't know how the threads hanging thing is fixed. But its fixed with the NetBeans 6.8 version developed code.</p><p>If someone knows answers to these things, please post them here.</p></div>

<div style="background-color: #f4f4f4; padding: 10px; margin-top: 20px;">
    <p style="margin: 0;">Reply to this message by <a href="http://community.jboss.org/message/573991#573991">going to Community</a></p>
        <p style="margin: 0;">Start a new discussion in JBoss Web Services at <a href="http://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2044">Community</a></p>
</div></td>
                        </tr>
                    </tbody>
                </table>


                </td>
            </tr>
        </tbody>
    </table>

</div>

</body>
</html>