Examples of DeliveryChannelImpl


Examples of org.apache.servicemix.jbi.messaging.DeliveryChannelImpl

   
    public void init() throws JBIException {
        log.info("Initializing component: " + getName());
        if (context != null && component != null) {
            DeliveryChannelImpl channel = new DeliveryChannelImpl(this);
            channel.setContext(context);
            context.setDeliveryChannel(channel);
            super.init();
            fireEvent(ComponentEvent.COMPONENT_INITIALIZED);
            ClassLoader loader = Thread.currentThread().getContextClassLoader();
            try {
View Full Code Here

Examples of org.mule.jbi.messaging.DeliveryChannelImpl

        } else if (me.getRole() == MessageExchange.Role.PROVIDER) {
            target = ((MessageExchangeProxy) me).getConsumer();
        } else {
            throw new UnknownRoleException(me.getRole());
        }
        DeliveryChannelImpl ch = (DeliveryChannelImpl) ((JbiRegistryComponent)registry.getComponent(target)).getChannel();
    ch.enqueue(((MessageExchangeProxy) me).getTwin());
    }
View Full Code Here

Examples of org.mule.jbi.messaging.DeliveryChannelImpl

    }
    ClassLoader cl = Thread.currentThread().getContextClassLoader();
    try {
      Thread.currentThread().setContextClassLoader(this.component.getClass().getClassLoader());
      this.objectName = container.createMBeanName(getName(), "lifecycle", null);
      this.channel = new DeliveryChannelImpl(container, getName());
      org.mule.jbi.management.ComponentLifeCycle lf = new org.mule.jbi.management.ComponentLifeCycle(container.getManagementContext(), this);
      lf.init();
      if (container.getMBeanServer().isRegistered(this.objectName)) {
        container.getMBeanServer().unregisterMBean(this.objectName);
      }
View Full Code Here

Examples of org.servicemix.jbi.messaging.DeliveryChannelImpl

            throws JBIException {
        ObjectName result = null;
        ComponentNameSpace cns = new ComponentNameSpace(getName(), activationSpec.getComponentName(), activationSpec.getId());
        log.info("Activating component for: " + cns + " with service: " + activationSpec.getService() + " component: "
                + component);
        DeliveryChannelImpl dc = new DeliveryChannelImpl(this, activationSpec.getComponentName());
        LocalComponentConnector lcc = registry.registerComponent(cns, description, component, dc, binding, service);
        if (lcc != null) {
            dc.setConnector(lcc);
            lcc.setPojo(pojo);
            ComponentEnvironment env = environmentContext.registerComponent(context.getEnvironment(),lcc);
            env.setInstallRoot(installationDir);
            context.activate(component, dc, env, activationSpec, installationDir);
            lcc.setContext(context);
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.