Examples of activateEndpoint()


Examples of javax.jbi.component.ComponentContext.activateEndpoint()

    }

    public void activate() throws Exception {
        logger = this.serviceUnit.getComponent().getLogger();
        ComponentContext ctx = this.serviceUnit.getComponent().getComponentContext();
        activated = ctx.activateEndpoint(service, endpoint);
        channel = ctx.getDeliveryChannel();
        // Get the target service
        ConfiguredReference referenceValue = entryPoint.getConfiguredReference();
        ConfiguredService targetServiceEndpoint = referenceValue.getTargetConfiguredServices().get(0);
        // Get the business interface
View Full Code Here

Examples of javax.jbi.component.ComponentContext.activateEndpoint()

       
        protected class TestEndpoint extends Endpoint implements ExchangeProcessor {
            protected ServiceEndpoint activated;
            public void activate() throws Exception {
                ComponentContext ctx = this.serviceUnit.getComponent().getComponentContext();
                activated = ctx.activateEndpoint(service, endpoint);
            }
            public void deactivate() throws Exception {
                ComponentContext ctx = this.serviceUnit.getComponent().getComponentContext();
                ctx.deactivateEndpoint(activated);
                activated = null;
View Full Code Here

Examples of javax.jbi.component.ComponentContext.activateEndpoint()

        logger = this.serviceUnit.getComponent().getLogger();
        ComponentContext ctx = getServiceUnit().getComponent()
                .getComponentContext();
        channel = ctx.getDeliveryChannel();
        exchangeFactory = channel.createExchangeFactory();
        activated = ctx.activateEndpoint(service, endpoint);
        start();
    }

    /*
     * (non-Javadoc)
 
View Full Code Here

Examples of javax.jbi.component.ComponentContext.activateEndpoint()

    }

    public void activate() throws Exception {
        logger = this.serviceUnit.getComponent().getLogger();
        ComponentContext ctx = this.serviceUnit.getComponent().getComponentContext();
        activated = ctx.activateEndpoint(service, endpoint);
        channel = ctx.getDeliveryChannel();
        // Get the target service
        ConfiguredReference referenceValue = entryPoint.getConfiguredReference();
        ConfiguredService targetServiceEndpoint = referenceValue.getTargetConfiguredServices().get(0);
        // Get the business interface
View Full Code Here

Examples of javax.jbi.component.ComponentContext.activateEndpoint()

    public void activate() throws Exception {
        logger = this.serviceUnit.getComponent().getLogger();
        ComponentContext ctx = getServiceUnit().getComponent().getComponentContext();
        channel = ctx.getDeliveryChannel();
        exchangeFactory = channel.createExchangeFactory();
        activated = ctx.activateEndpoint(service, endpoint);
        start();
    }

    public void deactivate() throws Exception {
        stop();
View Full Code Here

Examples of javax.jbi.component.ComponentContext.activateEndpoint()

        ws = getWebServiceAnnotation(endpointInterface);
        if (ws != null) {
            interfaceName = new QName(ws.targetNamespace(), ws.name());
        }
        ComponentContext ctx = this.serviceUnit.getComponent().getComponentContext();
        activated = ctx.activateEndpoint(service, endpoint);
        channel = ctx.getDeliveryChannel();
  }
 
    public static JAXBContext createJAXBContext(Class interfaceClass) throws JAXBException {
        List<Class> classes = new ArrayList<Class>();
View Full Code Here

Examples of javax.jbi.component.ComponentContext.activateEndpoint()

     * @see org.servicemix.common.Endpoint#activate()
     */
    public void activate() throws Exception {
        logger = this.serviceUnit.getComponent().getLogger();
        ComponentContext ctx = this.serviceUnit.getComponent().getComponentContext();
        activated = ctx.activateEndpoint(service, endpoint);
        injectContext(new EndpointComponentContext(this));
        processor.start();
    }

    /* (non-Javadoc)
 
View Full Code Here

Examples of javax.jbi.component.ComponentContext.activateEndpoint()

    logger = this.serviceUnit.getComponent().getLogger();
    ComponentContext ctx = getServiceUnit().getComponent()
        .getComponentContext();
    channel = ctx.getDeliveryChannel();
    exchangeFactory = channel.createExchangeFactory();
    activated = ctx.activateEndpoint(service, endpoint);
    start();
  }

  public void deactivate() throws Exception {
    stop();
View Full Code Here

Examples of javax.jbi.component.ComponentContext.activateEndpoint()

  }

  public void activate() throws Exception {
        logger = this.serviceUnit.getComponent().getLogger();
        ComponentContext ctx = this.serviceUnit.getComponent().getComponentContext();
        activated = ctx.activateEndpoint(service, endpoint);
        channel = ctx.getDeliveryChannel();
  }

  public void deactivate() throws Exception {
        ServiceEndpoint ep = activated;
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.