cannot disable rmi or change to another port in servicemix client
-----------------------------------------------------------------

                 Key: SM-796
                 URL: https://issues.apache.org/activemq/browse/SM-796
             Project: ServiceMix
          Issue Type: Bug
          Components: tooling
    Affects Versions: 3.1
         Environment: Windows XP, JDK 1.5_10
            Reporter: xiaoxiong duan


I use RemoteServiceMixClient, it can send exchange but has an unexpected 
exception:

11:53:50,473 WARN  [main] ManagementContext Failed to start rmi registry: Port 
already in use: 1099; nested exception is: 
        java.net.BindException: Address already in use: JVM_Bind
        
I disable MBeanServer and JmxConnector, and set rmiPort to 11099, but still got 
this exception.
How to disable rmi or change to another port?

Here is my client spring beans config file:

<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns:sm="http://servicemix.apache.org/config/1.0";>

  <sm:container id="jbi" 
                                                        
name="servicemix-client" 
                                                        
flowName="jms?jmsURL=tcp://localhost:61616" 
                                                        embedded="true" 
                                                        useMBeanServer="false" 
                                                        
createMBeanServer="false" 
                                                        
createJmxConnector="false"
                                                        rmiPort="11099">
    <sm:activationSpecs />
  </sm:container>
  
  <bean id="client" 
                        
class="org.apache.servicemix.client.RemoteServiceMixClient" 
                        init-method="start" 
                        destroy-method="shutDown" 
                        singleton="false">
    <constructor-arg value="tcp://localhost:61616" />
  </bean>
  
</beans>


-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
https://issues.apache.org/activemq/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Reply via email to