Package org.objectweb.celtix.systest.ws.rm

Source Code of org.objectweb.celtix.systest.ws.rm.ShutdownTestServer

package org.objectweb.celtix.systest.ws.rm;

import javax.xml.ws.Endpoint;

import org.objectweb.celtix.bus.busimpl.BusConfigurationBuilder;
import org.objectweb.celtix.configuration.ConfigurationBuilder;
import org.objectweb.celtix.configuration.ConfigurationBuilderFactory;
import org.objectweb.celtix.systest.common.TestServerBase;

public class ShutdownTestServer extends TestServerBase {

    protected void run() {

        ControlImpl.setConfigFileProperty("oneway-terminate-on-shutdown");
        ConfigurationBuilder builder = ConfigurationBuilderFactory.getBuilder();
        builder.buildConfiguration(BusConfigurationBuilder.BUS_CONFIGURATION_URI, "celtix");
       
        GreeterImpl implementor = new GreeterImpl();
        String address = "http://localhost:9000/SoapContext/GreeterPort";
        Endpoint.publish(address, implementor);

    }

    public static void main(String[] args) {
        try {
            ShutdownTestServer s = new ShutdownTestServer();
            s.start();           
        } catch (Exception ex) {
            ex.printStackTrace();
            System.exit(-1);
        } finally {
            System.out.println("done!");
        }
    }
}
TOP

Related Classes of org.objectweb.celtix.systest.ws.rm.ShutdownTestServer

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.