Hi Martina

1099 is the default rmi registry listen port. When you run more than on instance , only one rmi registry can start rightly.

Maybe we need to change the activemq's jmx server looking up code to connector the already start up registry if the registry is created.

Willem.


martymusk wrote:
Hy,
I'm working with ws-notification example (instance1, instance2, instance3).
I'm working with eclipse.
When instance 1 run, it work fine, but when I run instance 2, the following
error occurs:


DEBUG - ManagementContext              - Failed to create local registry
java.rmi.server.ExportException: Port already in use: 1099; nested exception
is: java.net.BindException: Address already in use
        at sun.rmi.transport.tcp.TCPTransport.listen(TCPTransport.java:249)
        at 
sun.rmi.transport.tcp.TCPTransport.exportObject(TCPTransport.java:184)
        at sun.rmi.transport.tcp.TCPEndpoint.exportObject(TCPEndpoint.java:382)
        at sun.rmi.transport.LiveRef.exportObject(LiveRef.java:116)
        at 
sun.rmi.server.UnicastServerRef.exportObject(UnicastServerRef.java:180)
        at sun.rmi.registry.RegistryImpl.setup(RegistryImpl.java:92)
        at sun.rmi.registry.RegistryImpl.<init>(RegistryImpl.java:78)
        at 
java.rmi.registry.LocateRegistry.createRegistry(LocateRegistry.java:186)
        at
org.apache.activemq.broker.jmx.ManagementContext.createConnector(ManagementContext.java:382)
        at
org.apache.activemq.broker.jmx.ManagementContext.findMBeanServer(ManagementContext.java:301)
        at
org.apache.activemq.broker.jmx.ManagementContext.getMBeanServer(ManagementContext.java:154)


Why this?
Can somebody help me, please!

Thank you very much!

Martina

Reply via email to