ICEPACK CONFIG: # # The IcePack locator proxy. # Ice.Default.Locator=IcePack/Locator:default -p 12000 # # IcePack registry configuration. # IcePack.Registry.Client.Endpoints=default -p 12000 IcePack.Registry.Server.Endpoints=default IcePack.Registry.Internal.Endpoints=default IcePack.Registry.Admin.Endpoints=default IcePack.Registry.Data=db/registry # # IcePack node configuration. # IcePack.Node.Name=localhost IcePack.Node.Endpoints=default IcePack.Node.Data=db/localhost IcePack.Node.CollocateRegistry=1 IcePack.Node.Trace.Activator=3 CLIENT/SERVER CONFIG: Ice.Default.Locator=IcePack/Locator:default -p 12000 #localhost.AdminLoginManager.Proxy=localhost.adminLoginManager #localhost.AdminLoginManager.Proxy=InfrastructureManagerServer.localhost.AdminLoginManager localhost.AdminLoginManager.Proxy=localhost.adminLoginManager:tcp -p 10000 localhost.AdminLoginManager.Endpoints=tcp -p 10000 machineName=localhost # # Warn about connection exceptions # Ice.Warn.Connections=1 Ice.ConnectionIdleTime=10 # # Network Tracing # # 0 = no network tracing # 1 = trace connection establishment and closure # 2 = like 1, but more detailed # 3 = like 2, but also trace data transfer # Ice.Trace.Network=1 # # Protocol Tracing # # 0 = no protocol tracing # 1 = trace protocol messages # Ice.Trace.Protocol=1 # # Security Tracing # # 0 = no security tracing # 1 = trace warning messages # 2 = config file parsing warnings # #Ice.Trace.Security=2 SERVER CODE: public static final String adminLoginManagerProxyPropertyName = ".AdminLoginManager"; public static final String adminLoginManagerProxyPropertyIdentity = ".adminLoginManager"; public void createAdminLoginManager() { System.out.println(" creating AdminLoginManager adaptor "); adminLoginManagerAdapter = communicator.createObjectAdapter(machineName + adminLoginManagerProxyPropertyName); System.out.println(" created AdminLoginManager adaptor "); adminLoginManagerImpl = new AdminLoginManagerImpl(); System.out.println(" created AdminLoginManagerImpl "); adminLoginManagerAdapter.add(adminLoginManagerImpl, Ice.Util.stringToIdentity(machineName + adminLoginManagerProxyPropertyIdentity)); System.out.println(" added AdminLoginManagerImpl to adapter"); adminLoginManagerAdapter.activate(); System.out.println(" activated AdminLoginManagerImpl"); System.out.println(""); } CLIENT CODE: public static final String adminLoginManagerProxyProperty = ".AdminLoginManager.Proxy"; public AdminLoginManagerPrx getAdminLoginMangerProxy() { if (adminLoginManager != null) return adminLoginManager; String propertyName = machineName + adminLoginManagerProxyProperty; adminLoginManagerProxy = IceClientManager.properties.getProperty(propertyName); if(adminLoginManagerProxy.length() == 0) { System.err.println("adminLoginManagerProxy property `" + propertyName + "' not set"); return null; } System.err.println("getting adminLoginManagerProxy with name '" + adminLoginManagerProxy + "'"); Ice.ObjectPrx base = IceClientManager.communicator.stringToProxy(adminLoginManagerProxy); System.err.println("got adminLoginManagerProxy"); adminLoginManager = AdminLoginManagerPrxHelper.checkedCast(base.ice_twoway().ice_timeout(-1).ice_secure(false)); if(adminLoginManager == null) { System.err.println("invalid adminLoginManagerProxy"); return null; } System.err.println("narrowed adminLoginManagerProxy"); System.err.println(""); return adminLoginManager; }