Is it possible to run an embedded naming service with a Java 1.5 CORBA server application so that its servants can be reached via “corbaloc” short-hand URLs instead of the long IOR references, but without running any other daemons, like ORBD?
E.g. corbaloc::127.0.0.1:12345/MyService
I notice there is a TransientNameService class in Java 1.6+, but I’m not sure it is what I think it is..
Any help will be greatly appreciated!
In the Sun ORB
corbaloc:references are considered initial references. They do not require any naming service, and are instead resolved by the ORB itself.Here’s how to register an initial reference:
After this MyService will be accessible at
corbaloc::127.0.0.1:12345/MyService