Examples of afterDelivery()


Examples of javax.resource.spi.endpoint.MessageEndpoint.afterDelivery()

    protected void postDeliveryHook(MessageListener listener, ActiveMQMessage message) {
        if (listener instanceof MessageEndpoint) {
            MessageEndpoint endpoint = (MessageEndpoint) listener;
            try {
                endpoint.afterDelivery();
            } catch (ResourceException e) {
                log.warn(e.toString(), e);
            }
        }       
    }
View Full Code Here

Examples of javax.resource.spi.endpoint.MessageEndpoint.afterDelivery()

                endpoint.beforeDelivery(ON_MESSAGE_METHOD);
                try {
                    listener.onMessage(message);
                } finally {
                    endpoint.afterDelivery();
                }
               
            } catch (NoSuchMethodException e) {
                log.info(e);
            } catch (ResourceException e) {
View Full Code Here

Examples of javax.resource.spi.endpoint.MessageEndpoint.afterDelivery()

            try
            {
               // to avoid a NPE that would happen while the RA is in tearDown
               if (endToUse != null)
               {
                  endToUse.afterDelivery();
               }
            }
            catch (ResourceException e1)
            {
               HornetQRALogger.LOGGER.unableToCallAfterDelivery(e1);
View Full Code Here

Examples of javax.resource.spi.endpoint.MessageEndpoint.afterDelivery()

                throw new JobExecutionException(new Exception(t));
            } finally {

                if (null != endpoint) {
                    try {
                        endpoint.afterDelivery();
                    } catch (ResourceException e) {
                        throw new JobExecutionException(e);
                    }
                }
            }
View Full Code Here

Examples of javax.resource.spi.endpoint.MessageEndpoint.afterDelivery()

            try
            {
               // to avoid a NPE that would happen while the RA is in tearDown
               if (endToUse != null)
               {
                  endToUse.afterDelivery();
               }
            }
            catch (ResourceException e1)
            {
               HornetQRALogger.LOGGER.unableToCallAfterDelivery(e1);
View Full Code Here

Examples of javax.resource.spi.endpoint.MessageEndpoint.afterDelivery()

            try
            {
               // to avoid a NPE that would happen while the RA is in tearDown
               if (endToUse != null)
               {
                  endToUse.afterDelivery();
               }
            }
            catch (ResourceException e1)
            {
               HornetQRALogger.LOGGER.unableToCallAfterDelivery(e1);
View Full Code Here

Examples of javax.resource.spi.endpoint.MessageEndpoint.afterDelivery()

    protected void postDeliveryHook(MessageListener listener, ActiveMQMessage message) {
        if (listener instanceof MessageEndpoint) {
            MessageEndpoint endpoint = (MessageEndpoint) listener;
            try {
                endpoint.afterDelivery();
            } catch (ResourceException e) {
                log.warn(e.toString(), e);
            }
        }       
    }
View Full Code Here

Examples of javax.resource.spi.endpoint.MessageEndpoint.afterDelivery()

            MessageEndpoint endpoint = (MessageEndpoint) emailConsumer;

            endpoint.beforeDelivery(EmailConsumer.class.getMethod("receiveEmail", Properties.class, String.class));
            emailConsumer.receiveEmail(headers, body);
            endpoint.afterDelivery();
        }
    }

    public static class EmailAccountInfo implements ActivationSpec {
        private EmailResourceAdapter emailResourceAdapter;
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.