Package javax.jbi.component

Examples of javax.jbi.component.ComponentContext


  private List helpers = new ArrayList();

  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();
  }
View Full Code Here


  public void deactivate() throws Exception {
    stop();
    ServiceEndpoint ep = activated;
    activated = null;
    ComponentContext ctx = getServiceUnit().getComponent()
        .getComponentContext();
    ctx.deactivateEndpoint(ep);
  }
View Full Code Here

    return Role.PROVIDER;
  }

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

  }

  public void deactivate() throws Exception {
        ServiceEndpoint ep = activated;
        activated = null;
        ComponentContext ctx = this.serviceUnit.getComponent().getComponentContext();
        ctx.deactivateEndpoint(ep);
  }
View Full Code Here

                     DOMUtil.getQName(e));
        assertEquals("urn:test", DOMUtil.getElementText(e));
    }

    public void testConfigureExchange() {
        ComponentContext ctx = (ComponentContext) Proxy.newProxyInstance(
                                                        ComponentContext.class.getClassLoader(),
                                                        new Class[] { ComponentContext.class },
                                                        new InvocationHandler() {
            public Object invoke(Object proxy, Method method, Object[] args) throws Throwable {
                throw new UnsupportedOperationException();
View Full Code Here

TOP

Related Classes of javax.jbi.component.ComponentContext

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.