CallbackService serviceImpl = new CallbackServiceImpl();
Proxy proxy = orb.exportObject(serviceImpl);
orb.getRegistry().bind("service", proxy);
ORB client = getClientORB();
Registry registry = getRegistry(principal);
CallbackService service = (CallbackService) registry.lookup("service");
LoggingCallback callback = new LoggingCallback();
Callback callbackProxy = (Callback) client.exportObjectTo(
callback, getServerURI(), user, password);
service.addCallback(callbackProxy);