private void loadXmlConfiguration() { String configDir = Container.getInstance().getConfiguration().getConfigurationDirectory(); String file = FileHelper.appendFileSeparator(configDir) + CONNECTIONPOOL_FILE; ConnectionPoolDocument poolDocument; try { poolDocument = ConnectionPoolDocument.Factory.parse( FileHelper.appendFileSeparator(configDir) + CONNECTIONPOOL_FILE); } catch (XmlException e) { logger.error(e, e); } }
public void start() { String configDir = Container.getInstance().getConfiguration().getConfigurationDirectory(); ILookup lookup = lookupContainer.getDaoLookup(); XMLUserObjectDAO usersDao = new XMLUserObjectDAO(configDir + USER_CONFIG_FILE); lookup.addContentObject(User.class, usersDao); if (Agent.getRMProperty("server.userManagement.initialize").equals("true")) { createDefaultUserEntries(); } MyClass<AgentObject> myClass = new MyClass<AgentObject>(); myClass.remove(new User()); myClass.add(User.class); }