Examples of Bus


Examples of org.objectweb.celtix.Bus

    public void tearDown() throws Exception {
        System.setProperty("java.class.path", javaClasspath);
        RouteTypeUtil.deleteDir(srcDir);
       
        Bus bus = Bus.getCurrent();
        bus.shutdown(true);
        Bus.setCurrent(null);
    }
View Full Code Here

Examples of org.objectweb.celtix.Bus

        Bus.setCurrent(null);
    }

    public void testRouterCreation() throws Exception {
        properties.put("org.objectweb.celtix.BusId", "RT1");
        Bus bus = Bus.init(null, properties);
        Bus.setCurrent(bus);

        Definition def = bus.getWSDLManager().getDefinition(getClass().getResource("resources/router.wsdl"));

        QName sourceSrv = new QName("http://objectweb.org/HWRouter", "HTTPSoapServiceSource");
        String sourcePort = new String("HTTPSoapPortSource");
        QName destSrv = new QName("http://objectweb.org/HWRouter", "HTTPSoapServiceDestination");
        String destPort = new String("HTTPSoapPortDestination");
View Full Code Here

Examples of org.objectweb.celtix.Bus

                                       false);
    }

    public void testPassThroughRouterInit() throws Exception {
        properties.put("org.objectweb.celtix.BusId", "RT2");
        Bus bus = Bus.init(null, properties);
        Bus.setCurrent(bus);

        Definition def = bus.getWSDLManager().getDefinition(getClass().getResource("resources/router.wsdl"));

        QName sourceSrv = new QName("http://objectweb.org/HWRouter", "HTTPSoapServiceSource");
        String sourcePort = new String("HTTPSoapPortSource");
        QName destSrv = new QName("http://objectweb.org/HWRouter", "HTTPSoapServiceDestination");
        String destPort = new String("HTTPSoapPortDestination");
View Full Code Here

Examples of org.objectweb.celtix.Bus

                   ssmp.getContext());
    }

    public void testNormalRouterInit() throws Exception {
        properties.put("org.objectweb.celtix.BusId", "RT3");
        Bus bus = Bus.init(null, properties);
        Bus.setCurrent(bus);

        URL wsdlURl = getClass().getResource("resources/router.wsdl");
        Definition def = bus.getWSDLManager().getDefinition(wsdlURl);

        QName sourceSrv = new QName("http://objectweb.org/HWRouter", "HTTPXMLServiceSource");
        String sourcePort = new String("HTTPXMLPortSource");
        QName destSrv = new QName("http://objectweb.org/HWRouter", "HTTPSoapServiceDestination");
        String destPort = new String("HTTPSoapPortDestination");
View Full Code Here

Examples of org.objectweb.celtix.Bus

    public void tearDown() throws Exception {
        System.setProperty("java.class.path", javaClasspath);
        RouteTypeUtil.deleteDir(opDir);
       
        Bus bus = Bus.getCurrent();
        bus.shutdown(true);
        Bus.setCurrent(null);
       
        System.clearProperty("celtix.config.file");
    }
View Full Code Here

Examples of org.objectweb.celtix.Bus

    }
   
    public void testGetRouterWSDLList() throws Exception {
       
        properties.put("org.objectweb.celtix.BusId", "celtix1");
        Bus bus = Bus.init(null, properties);
       
        RouterManager rm = new RouterManager(bus);
        List<String> urlList = rm.getRouteWSDLList();
       
        assertNotNull("a valid list should be present", urlList);
View Full Code Here

Examples of org.objectweb.celtix.Bus

        assertEquals(1, urlList.size());
    }

    public void testInvokeWSDLToJava() throws Exception {
        properties.put("org.objectweb.celtix.BusId", "celtix2");
        Bus bus = Bus.init(null, properties);

        TestRouterManager rm = new TestRouterManager(bus);

        //maven doesn't set java.class.path while eclipse does.
        boolean isClassPathSet = javaClasspath != null
View Full Code Here

Examples of org.objectweb.celtix.Bus

        }
    }
   
    public void testInit() throws Exception {
        properties.put("org.objectweb.celtix.BusId", "celtix2");
        Bus bus = Bus.init(null, properties);
       
        TestRouterManager rm = new TestRouterManager(bus);
       
        //maven doesn't set java.class.path while eclipse does.
        boolean isClassPathSet = javaClasspath != null
View Full Code Here

Examples of org.objectweb.celtix.Bus

        return seiClassLoader;
    }
   
    public static void main(String[] args) {
        try {
            Bus bus = Bus.init(args);
            RouterManager rm = new RouterManager(bus);
            rm.init();
            bus.run();
        } catch (BusException be) {
            throw new WebServiceException("Could not initialize bus", be);
        }
    }
View Full Code Here

Examples of org.objectweb.celtix.Bus

        System.out.println("Starting Server");
        implementor = new GreeterImpl();
        address = "http://localhost:9000/SoapContext/SoapPort";
        Endpoint.publish(address, implementor);
        //register to the bus MBServer       
        Bus bus = Bus.getCurrent();
        MBeanServer mbserver = bus.getInstrumentationManager().getMBeanServer();
        ObjectName name = new ObjectName("org.objectweb.celtix.instrumentation:type=ServerMBean,Bus="
                        + bus.getBusID() + ",name=ServerMBean");
        mbserver.registerMBean(this, name);
    }
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.