adaptorBean.putJNDIProperty(javax.naming.Context.INITIAL_CONTEXT_FACTORY, "com.sun.jndi.rmi.registry.RegistryContextFactory");
adaptorBean.putJNDIProperty(javax.naming.Context.PROVIDER_URL, "rmi://localhost:1099");
// Registers the JRMP adaptor in JNDI and starts it
adaptorBean.start();
hasStarted = true;
}
}
}