RMI endpoint should be able to create a RMI registry if it doesn't exist
------------------------------------------------------------------------
Key: CAMEL-4302
URL: https://issues.apache.org/jira/browse/CAMEL-4302
Project: Camel
Issue Type: Improvement
Components: camel-rmi
Reporter: Jean-Baptiste Onofré
If you define a RMI endpoint like:
<from
uri="rmi://localhost:1299/net/nanthrax/test?remoteInterfaces=my.RemoteInterface"/>
If a RMI registry is not already bound on port 1299, the RMI endpoint can't be
registered:
Caused by: java.rmi.ConnectException: Connection refused to host: localhost;
nested exception is:
java.net.ConnectException: Connection refused
at sun.rmi.transport.tcp.TCPEndpoint.newSocket(TCPEndpoint.java:601)
at
sun.rmi.transport.tcp.TCPChannel.createConnection(TCPChannel.java:198)
at sun.rmi.transport.tcp.TCPChannel.newConnection(TCPChannel.java:184)
at sun.rmi.server.UnicastRef.newCall(UnicastRef.java:322)
at sun.rmi.registry.RegistryImpl_Stub.bind(Unknown Source)
The RMI endpoint should be able to create a RMI registry on the given port if
it doesn't exist.
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira