private ServiceDaemon serviceDaemon;
private int port;
public void init(Properties props) {
try {
EjbServer ejbServer = new EjbServer();
// classpath should be scanned...
props.put("openejb.deployments.classpath", "true");
// ...and only the openejb-itests-beans should be considered as a deployment
props.put("openejb.deployments.classpath.include", ".*openejb-itests-beans.*");
// ...and have the openejb-itests-beans included in the deployments (it's a system app)
props.put("openejb.deployments.classpath.filter.systemapps", "false");
// props.put("openejb.debuggable-vm-hackery", "true");
OpenEJB.init(props, new ServerFederation());
ejbServer.init(props);
serviceDaemon = new ServiceDaemon(ejbServer, 0, "localhost");
} catch (Exception e) {
throw new RuntimeException("Unable to initialize Test Server.", e);