Examples of afterDelivery()


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

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

            mp.put(MessageEndpoint.class, ep);
           
            ENDPOINT_LOCAL.set(mp);
            ep.beforeDelivery(method);               
            messageReceived = doReceiveAndExecute(invoker, s, mc, null);
            ep.afterDelivery();
        } catch (Exception ex) {
            throw new JMSException(ex.getMessage());
        } finally {
            ep.release();
            JmsUtils.closeMessageConsumer(mc);
View Full Code Here

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

      }catch (Exception e) {
        log.log(Level.WARNING, "Exception while executing job with id '"+nextJobId+"'.", e);
      }

      try {
        endpoint.afterDelivery();
      } catch (ResourceException e) {
        log.log(Level.WARNING, "ResourceException while invoking afterDelivery() on MessageEndpoint '"+endpoint+"'", e);
      }

    } catch (UnavailableException 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

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

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

            mc = s.createConsumer(getDestination());           
            ep = factory.createEndpoint(xar);
            ENDPOINT_LOCAL.set(ep);
            ep.beforeDelivery(method);               
            messageReceived = doReceiveAndExecute(invoker, s, mc, null);
            ep.afterDelivery();
        } catch (Exception ex) {
            throw new JMSException(ex.getMessage());
        } finally {
            ep.release();
            JmsUtils.closeMessageConsumer(mc);
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()

            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

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

        } catch (InvocationTargetException e) {
            throw e.getTargetException();
        } finally {
            if (impl instanceof MessageEndpoint) {
                MessageEndpoint endpoint = (MessageEndpoint) impl;
                endpoint.afterDelivery();
            }
        }
    }

    private Object[] toParams(String[] args) {
View Full Code Here

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

                ex = new JobExecutionException(new Exception(t));
            } finally {

                if (null != endpoint) {
                    try {
                        endpoint.afterDelivery();
                    } catch (final ResourceException e) {
                        ex = new JobExecutionException(e);
                    }
                }
            }
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.