Saturday, 15 January 2011

java - How to bind with a different port -



java - How to bind with a different port -

i trying bind object name using different port default, 1099. using naming.bind.

naming.bind("myserver", server);

i have tried these , java.net.malformedurlexception:

naming.bind("myserver:2020", server); naming.bind("localhost:2020/myserver", server); naming.bind("//localhost:2020/myserver", server);

how can it? i've looked info everywhere , surprised there's nil said it.

try, 3rd option, replacing localhost 127.0.0.1.

a malformedurlexception thrown when either no legal protocol found in specification string or string not parsed.

java bind rmi

No comments:

Post a Comment