Examples of activateComponent()


Examples of org.apache.servicemix.jbi.container.JBIContainer.activateComponent()

        container.setEmbedded(true);
        container.init();
        container.start();
       
        EchoComponent component = new EchoComponent();
        container.activateComponent(component, "component");
        ServiceEndpoint ep = component.getContext().activateEndpoint(new QName("http://foo.bar.com", "myService"), "myEndpoint");
        DocumentFragment epr = ep.getAsReference(null);
        ServiceEndpoint ep2 = component.getContext().resolveEndpointReference(epr);
        assertSame(ep, ep2);
    }
View Full Code Here

Examples of org.apache.servicemix.jbi.container.JBIContainer.activateComponent()

        container.setEmbedded(true);
        container.init();
        container.start();
       
        EchoComponent component = new EchoComponent();
        container.activateComponent(component, "component");
        ServiceEndpoint ep = component.getContext().activateEndpoint(new QName("http://foo.bar.com", "myService"), "myEndpoint");
        DocumentFragment epr = URIResolver.createWSAEPR("endpoint:http://foo.bar.com/myService/myEndpoint");
        ServiceEndpoint ep2 = component.getContext().resolveEndpointReference(epr);
        assertSame(ep, ep2);
    }
View Full Code Here

Examples of org.apache.servicemix.jbi.container.JBIContainer.activateComponent()

            container.start();

            Sender sender = new SenderComponent();
            ActivationSpec senderActivationSpec = new ActivationSpec("sender", sender);
            senderActivationSpec.setFailIfNoDestinationEndpoint(false);
            container.activateComponent(senderActivationSpec);

            ReceiverListener receiver1 = new ReceiverListener();
            container.activateComponent(createReceiverAS("receiver1", receiver1));

            ReceiverListener receiver2 = new ReceiverListener();
View Full Code Here

Examples of org.apache.servicemix.jbi.container.JBIContainer.activateComponent()

            ActivationSpec senderActivationSpec = new ActivationSpec("sender", sender);
            senderActivationSpec.setFailIfNoDestinationEndpoint(false);
            container.activateComponent(senderActivationSpec);

            ReceiverListener receiver1 = new ReceiverListener();
            container.activateComponent(createReceiverAS("receiver1", receiver1));

            ReceiverListener receiver2 = new ReceiverListener();
            container.activateComponent(createReceiverAS("receiver2", receiver2));

            sender.sendMessages(1);
View Full Code Here

Examples of org.apache.servicemix.jbi.container.JBIContainer.activateComponent()

            ReceiverListener receiver1 = new ReceiverListener();
            container.activateComponent(createReceiverAS("receiver1", receiver1));

            ReceiverListener receiver2 = new ReceiverListener();
            container.activateComponent(createReceiverAS("receiver2", receiver2));

            sender.sendMessages(1);

            Thread.sleep(100);
View Full Code Here

Examples of org.apache.servicemix.jbi.container.JBIContainer.activateComponent()

            container.start();

            SenderListener sender = new SenderListener();
            ActivationSpec senderActivationSpec = new ActivationSpec("sender", sender);
            senderActivationSpec.setFailIfNoDestinationEndpoint(false);
            container.activateComponent(senderActivationSpec);

            Receiver receiver1 = new ReceiverComponent();
            container.activateComponent(createReceiverAS("receiver1", receiver1));

            Receiver receiver2 = new ReceiverComponent();
View Full Code Here

Examples of org.apache.servicemix.jbi.container.JBIContainer.activateComponent()

            ActivationSpec senderActivationSpec = new ActivationSpec("sender", sender);
            senderActivationSpec.setFailIfNoDestinationEndpoint(false);
            container.activateComponent(senderActivationSpec);

            Receiver receiver1 = new ReceiverComponent();
            container.activateComponent(createReceiverAS("receiver1", receiver1));

            Receiver receiver2 = new ReceiverComponent();
            container.activateComponent(createReceiverAS("receiver2", receiver2));

            sender.sendMessages(1, sync);
View Full Code Here

Examples of org.apache.servicemix.jbi.container.JBIContainer.activateComponent()

            Receiver receiver1 = new ReceiverComponent();
            container.activateComponent(createReceiverAS("receiver1", receiver1));

            Receiver receiver2 = new ReceiverComponent();
            container.activateComponent(createReceiverAS("receiver2", receiver2));

            sender.sendMessages(1, sync);

            Thread.sleep(100);
View Full Code Here

Examples of org.apache.servicemix.jbi.container.JBIContainer.activateComponent()

                } catch (Exception e) {
                    throw new RuntimeException(e);
                }
            }
        };
        container.activateComponent(new ActivationSpec("receiver", receiver));
        ServiceMixClient client = new DefaultServiceMixClient(container);
        ServiceEndpoint[] endpoints = client.getContext().getExternalEndpoints(null);
        assertNotNull(endpoints);
        assertEquals(1, endpoints.length);
        assertNull(client.getContext().getEndpointDescriptor(endpoints[0]));
View Full Code Here

Examples of org.apache.servicemix.jbi.container.JBIContainer.activateComponent()

        container.init();
        container.start();
       
        EchoComponent component = new EchoComponent();
        component.setService(new QName("http://foo.bar.com", "myService"));
        container.activateComponent(component, "component");
        ServiceEndpoint ep = component.getContext().activateEndpoint(new QName("http://foo.bar.com", "myService"), "myEndpoint");
        DocumentFragment epr = ep.getAsReference(null);
        ServiceEndpoint ep2 = component.getContext().resolveEndpointReference(epr);
        assertSame(ep, ep2);
    }
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.