[jboss-user] [Management, JMX/JBoss] - Re: Binding Twiddle only with localhost
sramhu
do-not-reply at jboss.com
Mon Jul 6 11:29:28 EDT 2009
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>
|
|
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4242018#4242018
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4242018
More information about the jboss-user
mailing list