/* Bind sul registro RMI */
Properties prop1 = new Properties();
prop1.put(Context.INITIAL_CONTEXT_FACTORY, "com.sun.jndi.rmi.registry.RegistryContextFactory");
prop1.put(Context.PROVIDER_URL, "rmi://127.0.0.1:" + rmiregistryPort);
InitialContext cxt1 = new InitialContext(prop1);
cxt1.rebind("AuthServer", authServer);
System.out.println("# AuthServer registrato sul Registro RMI.");
/* Bind sul Cos Naming */
Properties prop2 = new Properties();
prop2.put("java.naming.factory.initial", "com.sun.jndi.cosnaming.CNCtxFactory");