Package org.apache.tuscany.sca.node

Examples of org.apache.tuscany.sca.node.Contribution


        System.setProperty("java.naming.factory.initial", "org.apache.openejb.client.RemoteInitialContextFactory");
        System.setProperty("java.naming.provider.url", "ejbd://localhost:" + MOCK_PORT);
        System.setProperty("managed", "false");

        String contribution = ContributionLocationHelper.getContributionLocation(EJBReferenceTestCase.class);
        node = NodeFactory.newInstance().createNode("account/account.composite", new Contribution("account", contribution));
        node.start();

        // To capture the network traffic for the MockServer, uncomment the next line
        // new Thread(new SocketTracer(MOCK_PORT, OPENEJB_PORT)).start();
View Full Code Here


     */
    public void testComet() {
        JettyServer.portDefault = 8085;
        try {
            final String location = ContributionLocationHelper.getContributionLocation("test.composite");
            final Node node = NodeFactory.newInstance().createNode("test.composite", new Contribution("c1", location));
            node.start();
            // System.out.println("Press any key to stop the node.");
            // System.in.read();
            node.stop();
        } catch (final Exception e) {
View Full Code Here

    @BeforeClass
    public static void init() throws Exception {
        try {
            String contribution = ContributionLocationHelper.getContributionLocation(CustomerServiceTestCase.class);
            node = NodeFactory.newInstance().createNode("customer.composite", new Contribution("customer", contribution));
            node.start();
        } catch (Exception e) {
            e.printStackTrace();
        }
    }
View Full Code Here

    private static MySimpleTotalService myService3;

    @BeforeClass
    public static void setUp() throws Exception {
        String location = ContributionLocationHelper.getContributionLocation("TotalService1Auto.composite");
        Contribution contribution = new Contribution("c1", location);
        try {
            node1 = NodeFactory.newInstance().createNode("TotalService1Auto.composite", contribution);
        } catch (Exception e) {
            e.printStackTrace();
        }
View Full Code Here

    public static void init() throws Exception {
        try {
            String location = ContributionLocationHelper.getContributionLocation("AutoWiredReferencesTest.composite");
            node =
                NodeFactory.newInstance().createNode("AutoWiredReferencesTest.composite",
                                                     new Contribution("c1", location));
            node.start();
            acomponent = node.getService(AComponent.class, "AComponent");
            acomponentAutowire = node.getService(AComponent.class, "AComponentAutowire");
        } catch (Throwable e) {
            e.printStackTrace();
View Full Code Here

    private static AComponent acomponent;

    @BeforeClass
    public static void init() throws Exception {
        String location = ContributionLocationHelper.getContributionLocation("InnerReferencesTest.composite");
        node = NodeFactory.newInstance().createNode("InnerReferencesTest.composite", new Contribution("c1", location));
        node.start();
        acomponent = node.getService(AComponent.class, "AComponent");
    }
View Full Code Here

            boolean started = false;
            try {
                Thread.currentThread().setContextClassLoader(runtimeClassLoader);
                NodeFactory factory = NodeFactory.newInstance();
                String contribution = ContributionLocationHelper.getContributionLocation(getClass());
                daemon = factory.createNode("NodeDaemon.composite", new Contribution("node-runtime", contribution));
                started = true;
            } finally {
                if (!started) {
                    Thread.currentThread().setContextClassLoader(threadContextClassLoader);
                }
View Full Code Here

    }

    @Override
    protected void setUp() throws Exception {
        String contribution = ContributionLocationHelper.getContributionLocation(getClass());
        node = NodeFactory.newInstance().createNode("org/apache/tuscany/sca/binding/ws/axis2/itests/questionmark-wsdl-include.composite", new Contribution("test", contribution));
        node.start();
    }
View Full Code Here

    }

    @Override
    protected void setUp() throws Exception {
        String contribution = ContributionLocationHelper.getContributionLocation(getClass());
        node = NodeFactory.newInstance().createNode("org/apache/tuscany/sca/binding/ws/axis2/itests/questionmark-wsdl.composite", new Contribution("test", contribution));
        node.start();
    }
View Full Code Here

    }

    @Override
    protected void setUp() throws Exception {
        String contribution = ContributionLocationHelper.getContributionLocation(getClass());
        node = NodeFactory.newInstance().createNode("org/apache/tuscany/sca/binding/ws/axis2/itests/questionmark-wsdl-import.composite", new Contribution("test", contribution));
        node.start();
    }
View Full Code Here

TOP

Related Classes of org.apache.tuscany.sca.node.Contribution

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.