On 5/23/06, mqaiserm <[EMAIL PROTECTED]> wrote:
I am using servicemix-3.0 snapshot version and want to start servicemix on
port other than 1099, when I am changing rmiPort in servicemix.xml , its not
doing that , starting on 1099 only. Any idea ?
There are two ways to change the RMI port in ServiceMix:
1) Through the use of the rmiPort attribute on the container element like so:
<sm:container id="jbi"
name="foo"
rmiPort="1234"
embedded="true"
MBeanServer="#mbeanServer">
2) By configuring the NamingService bean from MX4J and setting the
port property like so:
<bean id="registry" class="mx4j.tools.naming.NamingService"
init-method="start">
<property name="port" value="1091"/>
</bean>
<bean id="serverConnector"
class="org.springframework.jmx.support.ConnectorServerFactoryBean"
depends-on="registry">
<property name="objectName" value="connector:name=rmi"/>
<property name="serviceUrl"
value="service:jmx:rmi:///jndi/rmi://localhost:1091/jmxrmi"/>
<property name="threaded" value="true"/>
<property name="daemon" value="true"/>
</bean>
Notice that the NamingService must then be used by the
ConnectorServerFactoryBean. In this case it is used via the depends-on
attribute of the bean.
Either of these methods can be used to change the RMI port.
Bruce
--
perl -e 'print unpack("u30","D0G)[EMAIL
PROTECTED]&5R\"F)R=6-E+G-N>61E<D\!G;6%I;\"YC;VT*"
);'
Apache Geronimo - http://geronimo.apache.org/
Apache ActiveMQ - http://incubator.apache.org/activemq/
Apache ServiceMix - http://incubator.apache.org/servicemix/
Castor - http://castor.org/