return manager;
}
private Server createAndConfigureServer()
{
Server server = new Server();
server.setName(configuration.getProfileName());
server.setHttpPort(configuration.getHttpPort());
server.setRmiPort(configuration.getRmiPort());
server.setHost(configuration.getBindAddress());
server.setHasWebServer(!configuration.isUseRmiPortForAliveCheck());
server.setUsername("admin");
server.setPassword("admin");
server.setPartition(Long.toHexString(System.currentTimeMillis()));
// Set server's JVM arguments
setServerVMArgs(server, configuration.getJavaVmArguments());
// Set server's system properties
Property prop = new Property();
prop.setKey("jbosstest.udp.ip_ttl");
prop.setValue("0");
server.addSysProperty(prop);
prop = new Property();
prop.setKey("java.endorsed.dirs");
prop.setValue(new File(configuration.getJbossHome(), "lib/endorsed").getAbsolutePath());
server.addSysProperty(prop);
return server;
}