what is the port number of RMI?

Answer Posted / ch.n.v.ganesh

The default number for RMI is 1099.


The RMI registry that is started up by FUSE uses the
standard port number of 1099. In the event that this port
number is already in use by some other process, this port
number can be changed. To change this port number, simply
edit the components/jmx/jmx-xbean.xml file to change the
port number. Below is an example of changing the RMI
registry port attribute from 1099 to 1234:

<bean id="registry"
class="org.logicblaze.soa.RmiRegistryFactoryBean">
<property name="port" value="1234" />
<property name="testRegistry" value="false" />
</bean>

In addition to changing the RMI registry port attribute,
the same port number will also need to be changed for the
bean named serverConnector which is located in the same
file. The serverConnector bean provides the ability to
connect to FUSE using a JMX management tool. Below is an
example of changing the RMI registry port number in the
serviceUrl attribute from 1099 to 1234:

<bean id="serverConnector"
class="org.apache.xbean.server.spring.jmx.ConnectorServerFac
toryBean"
depends-on="mbeanServer,registry">
<property name="objectName" value="connector:name=rmi" />
<property name="serviceUrl"
value="service:jmx:rmi:///jndi/rmi://localhost:1234/jmxrmi"
/>
<property name="threaded" value="true" />
<property name="daemon" value="true" />
</bean>

Is This Answer Correct ?    13 Yes 5 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Can you control when passivation occurs?

598


Define aop(assepct oriented programing)?

632


To what value is a variable of the string type automatically initialized?

607


What is the difference between RMI and Corba?

2255


What is threadfactory?

614






What are the call back methods in entity bean?

557


What is metaspace?

548


Difference between hashmap and hashtable?

606


what is handle?

1851


How would you reatach detached objects to a session when the same object has already been loaded into the session?

677


What is the difference between static and non-static with examples?

1358


What is ioc concept?

690


What if the static modifier is removed from the signature of the main method?

701


What is abstract schema?

553


What’s jboss jbpm?

578