<!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;">
    JBoss WebServices and Invokers
</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/596732#596732">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 all,</p><p>I need a little help in understanding how JBoss Invokers work. I am not sure I understood </p><p>whatever I've read, so please let me know when I am wrong.</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>I use JBoss 4.2.3 in my project and have JAX-WS webservices deployed in it (Consider one of </p><p>these as WebService A). These WebServices are POJO based ones and form WebService clients to </p><p>EJB based WebServices that my vendor offers (Consider one of these vendor WebServices V). </p><p>Hence, I have WebService to WebService calls within same JVM, i.e., the invocation flow is:<br/>External system -&gt; A -&gt; V -&gt; Database</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>When a new request comes in for A, where does the invoker come in ? I thought that the </p><p>internal WebService call from A to V uses the invoker as V is an EJB based WebService and I </p><p>have configured "Standard Stateless SessionBean" to use "stateless-rmi-invoker" which inturn </p><p>uses "jboss:service=invoker,type=pooled" (That was what I've configured in standardjboss.xml). </p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>My jboss-service.xml for pooled invoker is: </p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><pre class="jive-pre"><code class="jive-code jive-xml">
<span class="jive-xml-tag">&lt;mbean code="org.jboss.invocation.pooled.server.PooledInvoker"
&#160;&#160;&#160;&#160;&#160; name="jboss:service=invoker,type=pooled"&gt;</span>
&#160;&#160;&#160;&#160;&#160; <span class="jive-xml-tag">&lt;attribute name="NumAcceptThreads"&gt;</span>5<span class="jive-xml-tag">&lt;/attribute&gt;</span>
&#160;&#160;&#160;&#160;&#160; <span class="jive-xml-tag">&lt;attribute name="MaxPoolSize"&gt;</span>300<span class="jive-xml-tag">&lt;/attribute&gt;</span>
&#160;&#160;&#160;&#160;&#160; <span class="jive-xml-tag">&lt;attribute name="ClientMaxPoolSize"&gt;</span>300<span class="jive-xml-tag">&lt;/attribute&gt;</span>
&#160;&#160;&#160;&#160;&#160; <span class="jive-xml-tag">&lt;attribute name="SocketTimeout"&gt;</span>240000<span class="jive-xml-tag">&lt;/attribute&gt;</span>
&#160;&#160;&#160;&#160;&#160; <span class="jive-xml-tag">&lt;attribute name="ServerBindAddress"&gt;</span>${jboss.bind.address}<span class="jive-xml-tag">&lt;/attribute&gt;</span>
&#160;&#160;&#160;&#160;&#160; <span class="jive-xml-tag">&lt;attribute name="ServerBindPort"&gt;</span>4445<span class="jive-xml-tag">&lt;/attribute&gt;</span>
&#160;&#160;&#160;&#160;&#160; <span class="jive-xml-tag">&lt;attribute name="ClientConnectAddress"&gt;</span>${jboss.bind.address}<span class="jive-xml-tag">&lt;/attribute&gt;</span>
&#160;&#160;&#160;&#160;&#160; <span class="jive-xml-tag">&lt;attribute name="ClientConnectPort"&gt;</span>0<span class="jive-xml-tag">&lt;/attribute&gt;</span>
&#160;&#160;&#160;&#160;&#160; <span class="jive-xml-tag">&lt;attribute name="ClientRetryCount"&gt;</span>1<span class="jive-xml-tag">&lt;/attribute&gt;</span>
&#160;&#160;&#160;&#160;&#160; <span class="jive-xml-tag">&lt;attribute name="EnableTcpNoDelay"&gt;</span>false<span class="jive-xml-tag">&lt;/attribute&gt;</span>


&#160;&#160;&#160;&#160;&#160; <span class="jive-xml-comment">&lt;!-- Customized socket factory attributes
&#160;&#160;&#160;&#160;&#160; <span class="jive-xml-tag">&lt;attribute name="ClientSocketFactoryName"&gt;</span>custom.client.factory<span class="jive-xml-tag">&lt;/attribute&gt;</span>
&#160;&#160;&#160;&#160;&#160; <span class="jive-xml-tag">&lt;attribute name="ServerSocketFactoryName"&gt;</span>custom.server.factory<span class="jive-xml-tag">&lt;/attribute&gt;</span>
&#160;&#160;&#160;&#160;&#160; <span class="jive-xml-tag">&lt;attribute name="SslDomain"&gt;</span>java:/jaas/pooledInvoker<span class="jive-xml-tag">&lt;/attribute&gt;</span>
&#160;&#160;&#160;&#160;&#160; --&gt;</span>
&#160;&#160;&#160;&#160;&#160; <span class="jive-xml-tag">&lt;depends 
optional-attribute-name="TransactionManagerService"&gt;</span>jboss:service=TransactionManager<span class="jive-xml-tag">&lt;/depends&gt;</span>
&#160;&#160; <span class="jive-xml-tag">&lt;/mbean&gt;</span>
</code></pre><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>However, when I take a look at the threaddump (via the JMX console jboss.system:type=ServerInfo listThreadDump()), I don't find any PooledInvokerThread instances in the thread dump. Does that mean that I am not using pooled invokers ?</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>I am trying to see if there are any areas where I can tweak some parameters to improve the number of requests that JBoss can handle for my application. So, I just wanted to know if I am looking in the right areas.</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>Thanks.</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/596732#596732">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>