Announcement

Collapse
No announcement yet.

Changing the RMI (1099) port

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • 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&#039;s need to deploy first, and then restart the Mirth.

    The jmx.uri line ant the Mirth.properties file need to be changed too.
Working...
X