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.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);
            ClassLoader loader = Thread.currentThread().getContextClassLoader();
            try {
                Thread.currentThread().setContextClassLoader(getLifeCycle().getClass().getClassLoader());
                getLifeCycle().init(context);
View Full Code Here

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

    /**
     * Cancel pending exchanges in all components
     */
    public void cancelPendingExchanges() {
        for (ComponentMBeanImpl mbean : componentRegistry.getComponents()) {
            DeliveryChannelImpl channel = mbean.getDeliveryChannel();
            if (channel != null) {
                channel.cancelPendingExchanges();
            }
        }
       
    }
View Full Code Here

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

    /**
     * Cancel pending exchanges in all components
     */
    public void cancelPendingExchanges() {
        for (ComponentMBeanImpl mbean : componentRegistry.getComponents()) {
            DeliveryChannelImpl channel = mbean.getDeliveryChannel();
            if (channel != null) {
                channel.cancelPendingExchanges();
            }
        }     
    }
View Full Code Here

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

   
    public void init() throws JBIException {
        LOGGER.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.apache.servicemix.jbi.messaging.DeliveryChannelImpl

    /**
     * Cancel pending exchanges in all components
     */
    public void cancelPendingExchanges() {
        for (ComponentMBeanImpl mbean : componentRegistry.getComponents()) {
            DeliveryChannelImpl channel = mbean.getDeliveryChannel();
            if (channel != null) {
                channel.cancelPendingExchanges();
            }
        }     
    }
View Full Code Here

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

    /**
     * Cancel pending exchanges in all components
     */
    public void cancelPendingExchanges() {
        for (ComponentMBeanImpl mbean : componentRegistry.getComponents()) {
            DeliveryChannelImpl channel = mbean.getDeliveryChannel();
            if (channel != null) {
                channel.cancelPendingExchanges();
            }
        }
       
    }
View Full Code Here

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

    /**
     * Cancel pending exchanges in all components
     */
    public void cancelPendingExchanges() {
        for (ComponentMBeanImpl mbean : componentRegistry.getComponents()) {
            DeliveryChannelImpl channel = mbean.getDeliveryChannel();
            if (channel != null) {
                channel.cancelPendingExchanges();
            }
        }     
    }
View Full Code Here

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.apache.servicemix.jbi.messaging.DeliveryChannelImpl

       
        final AtomicInteger canceled = new AtomicInteger();
       
        // injecting mock delivery channels to check if pending exchanges get canceled
        for (ComponentMBeanImpl mbean : container.getRegistry().getComponents()) {
            mbean.setDeliveryChannel(new DeliveryChannelImpl(mbean) {
                @Override
                public void cancelPendingExchanges() {
                    canceled.incrementAndGet();
                }
            });
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.