public void start() { start(Collections.<String>emptyList(), START, true); }
public void start() { start(Collections.<String>emptyList(), START, true); }
@Override public void setup() throws IOException { System.out.println("Setup called"); try { server.start(Arrays.asList( "-Dtomee.serialization.class.blacklist=-", "-Dopenejb.classloader.forced-load=org.apache.openejb.tck"), "start", true); } catch (final Exception e) { cleanup(); e.printStackTrace(); } }
@Override public void setup() throws IOException { System.out.println("Setup called"); try { server.start(Arrays.asList("-Dopenejb.classloader.forced-load=org.apache.openejb.tck"), "start", true); } catch (final Exception e) { cleanup(); throw e; } System.out.println("Started"); }
public static void main(String[] args) { assert args.length > 0 : "no arguments supplied: valid arguments are 'start' or 'stop'"; if (args[0].equalsIgnoreCase("start")){ new RemoteServer().start(); } else if (args[0].equalsIgnoreCase("stop")) { RemoteServer remoteServer = new RemoteServer(); remoteServer.serverHasAlreadyBeenStarted = false; remoteServer.stop(); } else { throw new RuntimeException("valid arguments are 'start' or 'stop'"); } } public Properties getProperties() {
public static void main(final String[] args) { assert args.length > 0 : "no arguments supplied: valid arguments are 'start' or 'stop'"; if (args[0].equalsIgnoreCase(START)) { final RemoteServer remoteServer = new RemoteServer(); try { remoteServer.start(); } catch (final Exception e) { remoteServer.destroy(); e.printStackTrace(System.err); } } else if (args[0].equalsIgnoreCase(STOP)) { final RemoteServer remoteServer = new RemoteServer(); remoteServer.serverHasAlreadyBeenStarted = false; try { remoteServer.forceStop(); } catch (final Exception e) { e.printStackTrace(System.err); } } else { throw new OpenEJBRuntimeException("valid arguments are 'start' or 'stop'"); } }
public static void main(final String[] args) { assert args.length > 0 : "no arguments supplied: valid arguments are 'start' or 'stop'"; if (args[0].equalsIgnoreCase(START)) { final RemoteServer remoteServer = new RemoteServer(); try { remoteServer.start(); } catch (final Exception e) { remoteServer.destroy(); throw e; } } else if (args[0].equalsIgnoreCase(STOP)) { final RemoteServer remoteServer = new RemoteServer(); remoteServer.serverHasAlreadyBeenStarted = false; try { remoteServer.forceStop(); } catch (final Exception e) { e.printStackTrace(System.err); } } else { throw new OpenEJBRuntimeException("valid arguments are 'start' or 'stop'"); } }
instance.container.start(Arrays.asList( "-Dtomee.serialization.class.blacklist=" + System.getProperty("tomee.serialization.class.blacklist"), "-Dopenejb.system.apps=true", "-Dtomee.remote.support=true"),
@Override public boolean deploy(final InputStream archive, final String name) throws IOException { if (name.endsWith("war")) { currentFile = new File(WEBAPP_DIR, name); } else { currentFile = new File(APPS_DIR, name); } System.out.println(currentFile); writeToFile(currentFile, archive); final int port = ServerLocal.getPort(-1); if (port > 0) { server = new RemoteServer(100, true); server.setPortStartup(port); } else { throw new OpenEJBTCKRuntimeException("Please set the tomee port using the system property 'server.http.port'"); } try { server.start(); } catch (final Exception e) { server.destroy(); e.printStackTrace(); throw e; } return (exception = lookup().exception()) == null; }
@Override public boolean deploy(final InputStream archive, final String name) throws IOException { if (name.endsWith("war")) { currentFile = new File(WEBAPP_DIR, name); } else { currentFile = new File(APPS_DIR, name); } System.out.println(currentFile); writeToFile(currentFile, archive); final int port = ServerLocal.getPort(-1); if (port > 0) { server = new RemoteServer(100, true); server.setPortStartup(port); } else { throw new OpenEJBTCKRuntimeException("Please set the tomee port using the system property 'server.http.port'"); } try { server.start(); } catch (final Exception e) { server.destroy(); e.printStackTrace(); throw new RuntimeException(e); } return (exception = lookup().exception()) == null; }
instance.container.start(Arrays.asList( "-Dtomee.serialization.class.blacklist=" + System.getProperty("tomee.serialization.class.blacklist"), "-Dopenejb.system.apps=true", "-Dtomee.remote.support=true"),
void startServer() throws InterruptedException { setupSystemProperties(); server = createRemoteServer(); server.setPortStartup(config.getHttpPort()); setupClassPath(server); server.start(getJvmArgs(), "start", true); server.getServer().waitFor(); }