Package com.sun.enterprise.config.serverbeans

Examples of com.sun.enterprise.config.serverbeans.SystemProperty


    public void addSystemPropertyForToken(List<ConfigCustomizationToken> tokens, SystemPropertyBag bag)
            throws TransactionFailure, PropertyVetoException {
        for (ConfigCustomizationToken token : tokens) {
            if (!bag.containsProperty(token.getName())) {
                SystemProperty prop = bag.createChild(SystemProperty.class);
                prop.setName(token.getName());
                prop.setDescription(token.getDescription());
                prop.setValue(token.getValue());
                bag.getSystemProperty().add(prop);
            }
        }
    }
View Full Code Here


        Domain domain = Globals.get(Domain.class);
        Server server = domain.getServerNamed(instanceName);

        String port = null;
        SystemProperty httpPort = server.getSystemProperty(http_port);
        if(httpPort != null) {
            port = httpPort.getValue();
        } else {
            //if port is not set as system property, get it from config
            Config cfg = server.getConfig();
            SystemProperty httpConfigPort = cfg.getSystemProperty(http_port);
            if(httpConfigPort != null){
                port = httpConfigPort.getValue();
            }
        }

        if(port == null) {
            throw new RuntimeException("Not able to get HTTP_LISTENER_PORT " +
View Full Code Here

TOP

Related Classes of com.sun.enterprise.config.serverbeans.SystemProperty

Copyright © 2018 www.massapicom. 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.