Package org.apache.tomee.util

Examples of org.apache.tomee.util.QuickServerXmlParser.stop()


        final QuickServerXmlParser ports = QuickServerXmlParser.parse(serverXml);
        if (configuration.getKeepServerXmlAsThis()) {
            // force ports to be able to stop the server and get @ArquillianResource
            configuration.setHttpPort(Integer.parseInt(ports.http()));
            configuration.setStopPort(Integer.parseInt(ports.stop()));
            return; // in this case we don't want to override the conf
        }

        final Map<String, String> replacements = new HashMap<String, String>();
        replacements.put(ports.http(), String.valueOf(configuration.getHttpPort()));
View Full Code Here


        }

        final Map<String, String> replacements = new HashMap<String, String>();
        replacements.put(ports.http(), String.valueOf(configuration.getHttpPort()));
        replacements.put(ports.https(), String.valueOf(configuration.getHttpsPort()));
        replacements.put(ports.stop(), String.valueOf(configuration.getStopPort()));
        replacements.put(ports.ajp(), String.valueOf(ajpPort(configuration)));

        if (configuration.isUnpackWars()) {
            replacements.put("unpackWARs=\"false\"", "unpackWARs=\"true\"");
        } else {
View Full Code Here

        final Collection<String> params = new ArrayList<String>();
        if ("java".equals(cmd)) {
            final QuickServerXmlParser parser = QuickServerXmlParser.parse(new File(distribOutput,"conf/server.xml"));

            System.setProperty("openejb.home", distribOutput.getAbsolutePath());
            System.setProperty("server.shutdown.port", parser.stop());
            System.setProperty("server.shutdown.command", config.getProperty("shutdownCommand"));

            final RemoteServer server = new RemoteServer();
            server.setPortStartup(Integer.parseInt(parser.http()));
View Full Code Here

            writer = new FileWriter(serverXml);
            writer.write(value
                .replace(parser.http(), Integer.toString(tomeeHttpPort))
                .replace(parser.https(), Integer.toString(tomeeHttpsPort))
                .replace(parser.ajp(), Integer.toString(tomeeAjpPort))
                .replace(parser.stop(), Integer.toString(tomeeShutdownPort))
                .replace(parser.host(), tomeeHost)
                .replace(parser.appBase(), webappDir));
        } catch (final IOException e) {
            throw new TomEEException(e.getMessage(), e);
        } finally {
View Full Code Here

        final QuickServerXmlParser ports = QuickServerXmlParser.parse(serverXml);
        if (configuration.getKeepServerXmlAsThis()) {
            // force ports to be able to stop the server and get @ArquillianResource
            configuration.setHttpPort(Integer.parseInt(ports.http()));
            configuration.setStopPort(Integer.parseInt(ports.stop()));
            return; // in this case we don't want to override the conf
        }

        final Map<String, String> replacements = new HashMap<>();
        replacements.put(ports.http(), String.valueOf(configuration.getHttpPort()));
View Full Code Here

        }

        final Map<String, String> replacements = new HashMap<>();
        replacements.put(ports.http(), String.valueOf(configuration.getHttpPort()));
        replacements.put(ports.https(), String.valueOf(configuration.getHttpsPort()));
        replacements.put(ports.stop(), String.valueOf(configuration.getStopPort()));
        replacements.put(ports.ajp(), String.valueOf(ajpPort(configuration)));

        if (configuration.isUnpackWars()) {
            replacements.put("unpackWARs=\"false\"", "unpackWARs=\"true\"");
        } else {
View Full Code Here

                throw new IllegalArgumentException("You need to set openejb.home");
            }

            final QuickServerXmlParser parser = QuickServerXmlParser.parse(new File(home, "conf/server.xml"));
            final String remoteEjb = System.getProperty(Context.PROVIDER_URL, "http://" + parser.host() + ":" + parser.http() + "/tomee/ejb");
            System.setProperty(RemoteServer.SERVER_SHUTDOWN_PORT, parser.stop());

            try {
                instance = new RemoteTomEEEJBContainer();
                instance.container = new RemoteServer();
                instance.container.setPortStartup(Integer.parseInt(parser.http()));
View Full Code Here

            writer = new FileWriter(serverXml);
            writer.write(value
                .replace(parser.http(), Integer.toString(tomeeHttpPort))
                .replace(parser.https(), Integer.toString(tomeeHttpsPort))
                .replace(parser.ajp(), Integer.toString(tomeeAjpPort))
                .replace(parser.stop(), Integer.toString(tomeeShutdownPort))
                .replace(parser.host(), tomeeHost)
                .replace(parser.appBase(), webappDir));
        } catch (final IOException e) {
            throw new TomEEException(e.getMessage(), e);
        } finally {
View Full Code Here

            writer = new FileWriter(serverXml);
            writer.write(value
                .replace(parser.http(), Integer.toString(tomeeHttpPort))
                .replace(parser.https(), Integer.toString(tomeeHttpsPort))
                .replace(parser.ajp(), Integer.toString(tomeeAjpPort))
                .replace(parser.stop(), Integer.toString(tomeeShutdownPort))
                .replace(parser.host(), tomeeHost)
                .replace(parser.appBase(), webappDir));
        } catch (final IOException e) {
            throw new TomEEException(e.getMessage(), e);
        } finally {
View Full Code Here

            writer = new FileWriter(serverXml);
            writer.write(value
                .replace(parser.http(), Integer.toString(tomeeHttpPort))
                .replace(parser.https(), Integer.toString(tomeeHttpsPort))
                .replace(parser.ajp(), Integer.toString(tomeeAjpPort))
                .replace(parser.stop(), Integer.toString(tomeeShutdownPort))
                .replace(parser.host(), tomeeHost)
                .replace(parser.appBase(), webappDir));
        } catch (IOException e) {
            throw new TomEEException(e.getMessage(), e);
        } finally {
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.