Package org.jboss.soa.esb.services.persistence

Examples of org.jboss.soa.esb.services.persistence.MessageStore.removeMessage()


        message.getBody().add(DATE, new Date()) ;
        try {
            //empty out the DLQ
            Map<URI, Message> messageMap = ms.getAllMessages(MessageStore.CLASSIFICATION_RDLVR);
            for (URI key : messageMap.keySet()) {
                ms.removeMessage(key, MessageStore.CLASSIFICATION_RDLVR);
            }
            Service noneExistingService = new Service("none-exising-category", "none-existing-service-name");
            ServiceInvoker si = new ServiceInvoker(noneExistingService);
            si.deliverAsync(message);
          
View Full Code Here


                logger.info("Message in the RDLVR should be the same message: " + compare(message.getBody(), rdlvrMessage.getBody()));
                logger.info("Message=" + message.getBody());
                logger.info("rdlvrMessage=" + rdlvrMessage.getBody());
                logger.info("*******************************");
                logger.info("Removing message to avoid future redeliveries");
                ms.removeMessage(key, MessageStore.CLASSIFICATION_RDLVR);
            }
        } catch (MessageStoreException mse) {
            throw new ActionProcessingException(mse.getMessage(), mse);
        } catch (MessageDeliverException mde) {
            throw new ActionProcessingException(mde.getMessage(), mde);
View Full Code Here

        message.getBody().add(DATE, new Date()) ;
        try {
            //empty out the DLQ
            Map<URI, Message> messageMap = ms.getAllMessages(MessageStore.CLASSIFICATION_DLQ);
            for (URI key : messageMap.keySet()) {
                ms.removeMessage(key, MessageStore.CLASSIFICATION_DLQ);
            }
            Service noneExistingService = new Service("none-exising-category", "none-existing-service-name");
            ServiceInvoker si = new ServiceInvoker(noneExistingService);
            si.deliverSync(message, 1000);
        } catch (MessageStoreException mse) {
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.