web stats
Mirth Community - View Single Post - Changing the RMI (1099) port
View Single Post
  #1  
Old 10-30-2006, 12:13 AM
albertosaez albertosaez is offline
 
Join Date: Sep 2006
Location: Valladolid, Spain
Posts: 842
albertosaez is an unknown quantity at this point
Default Changing the RMI (1099) port

Hi.

I was in the need of changing the default RMI port (1099). As it's a non-trivial operation, I'm posting now the way:

It's needed to change the properties both in the RMI and JMX agents defined at the conf/boot-mule.xml file in the next way:

Code:
<agents>
		<agent name="RMI" className="org.mule.management.agents.RmiRegistryAgent" >
			 <properties>
                                <property name="serverUri" value="rmi://localhost:1099" />
                        </properties>
		</agent>
		<agent name="JMX" className="org.mule.management.agents.JmxAgent">
			<properties>
				<property name="connectorServerUrl"
					value="service:jmx:rmi:///jndi/rmi://localhost:1099/server" />

				<map name="connectorServerProperties">
					<property name="jmx.remote.jndi.rebind" value="true" />
				</map>
			</properties>
		</agent>
</agents>
If you want to change the port in a Mirth which has some channels defined, it's need to deploy first, and then restart the Mirth.

The jmx.uri line ant the Mirth.properties file need to be changed too.
Reply With Quote