public ContainersImplTomEE() { System.out.println("ContainersImpl=" + ContainersImplTomEE.class.getName()); System.out.println("Initialized ContainersImplTomEE " + (++count)); server = new RemoteServer(); server.setPortStartup(this.port); }
public ContainersImplTomEE() { System.out.println("ContainersImpl=" + ContainersImplTomEE.class.getName()); System.out.println("Initialized ContainersImplTomEE " + (++count) + ", wait port = " + port); server = new RemoteServer(); server.setPortStartup(this.port); }
@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 = new RemoteServer(); instance.container.setDebug("true".equalsIgnoreCase(String.valueOf(properties.get("debug")))); instance.container.setPortStartup(Integer.parseInt(parser.http()));
instance = new RemoteTomEEEJBContainer(); instance.container = new RemoteServer(); instance.container.setPortStartup(Integer.parseInt(parser.http()));
@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; }
void startServer() throws InterruptedException { setupSystemProperties(); server = createRemoteServer(); server.setPortStartup(config.getHttpPort()); setupClassPath(server); server.start(getJvmArgs(), "start", true); server.getServer().waitFor(); }