This content has been marked as final.
Show 2 replies
-
1. Re: Binding Twiddle only with localhost
sramhu Jul 6, 2009 11:29 AM (in response to sramhu)Contents of http://kbase.redhat.com/faq/docs/DOC-5477
It is recommended that the jmx-invoker be bound specifically to localhost only. Do it as follows: In server/<configuration>/conf/jboss-service.xml, look for RMI/JRMP invoker section and update ServerAddress to be localhost. The section should then look something like: <!-- RMI/JRMP invoker --> <mbean code="org.jboss.invocation.jrmp.server.JRMPInvoker" name="jboss:service=invoker,type=jrmp"> <attribute name="RMIObjectPort">4444</attribute> <attribute name="ServerAddress">localhost</attribute> .... In server/<configuration>/deploy/jmx-invoker-service.xml Add the following lines inside the <server> section: <!-- A pooled invoker bound to localhost --> <mbean code="org.jboss.invocation.pooled.server.PooledInvoker" name="jboss:service=invoker,type=pooled,host=localhost"> <attribute name="NumAcceptThreads">1</attribute> <attribute name="MaxPoolSize">300</attribute> <attribute name="ClientMaxPoolSize">300</attribute> <attribute name="SocketTimeout">60000</attribute> <attribute name="ServerBindAddress">localhost</attribute> <attribute name="ServerBindPort">4443</attribute> <attribute name="ClientConnectAddress">localhost</attribute> <attribute name="ClientConnectPort">0</attribute> <attribute name="ClientRetryCount">1</attribute> <attribute name="EnableTcpNoDelay">false</attribute> <depends optional-attribute-name="TransactionManagerService">jboss:service=TransactionManager</depends> And in the '<mbean code="org.jboss.invocation.jrmp.server.JRMPProxyFactory"' section, change the <depends> element with optional-attribute-name="InvokerName" to "jboss:service=invoker,type=pooled,host=localhost" so that it looks like: <depends optional-attribute-name="InvokerName">jboss:service=invoker,type=pooled,host=localhost</depends>
-
2. Re: Binding Twiddle only with localhost
lchoy Aug 3, 2009 5:04 PM (in response to sramhu)In server/configuration/deploy/jmx-invoker-service.xml, add a closing
</mbean>
tag to the end of the definition for the pooled invoker bound to localhost.
This worked for me on JBoss 4.2.2, but not JBoss AS 5.x.