Examples of MessageDeliveryException


Examples of org.springframework.messaging.MessageDeliveryException

        ListenableFuture<Void> future = super.forward(message, accessor);
        future.get();
        return future;
      }
      catch (Throwable ex) {
        throw new MessageDeliveryException(message, ex);
      }
    }
View Full Code Here

Examples of org.springframework.messaging.MessageDeliveryException

    catch (Exception ex) {
      chain.triggerAfterSendCompletion(message, this, sent, ex);
      if (ex instanceof MessagingException) {
        throw (MessagingException) ex;
      }
      throw new MessageDeliveryException(message,"Failed to send message to " + this, ex);
    }
    catch (Error ex) {
      MessageDeliveryException ex2 =
          new MessageDeliveryException(message, "Failed to send message to " + this, ex);
      chain.triggerAfterSendCompletion(message, this, sent, ex2);
      throw ex2;
    }
  }
View Full Code Here

Examples of org.springframework.messaging.MessageDeliveryException

        triggerAfterMessageHandled(message, ex);
        if (ex instanceof MessagingException) {
          throw (MessagingException) ex;
        }
        String description = "Failed to handle " + message + " to " + this + " in " + this.messageHandler;
        throw new MessageDeliveryException(message, description, ex);
      }
      catch (Error ex) {
        String description = "Failed to handle " + message + " to " + this + " in " + this.messageHandler;
        triggerAfterMessageHandled(message, new MessageDeliveryException(message, description, ex));
        throw ex;
      }
    }
View Full Code Here

Examples of org.springframework.messaging.MessageDeliveryException

        final Message message = new DefaultMessage("<TestRequest><Message>Hello World!</Message></TestRequest>");
       
        reset(messagingTemplate, channel);
       
        messagingTemplate.send(eq(channel), anyObject(org.springframework.messaging.Message.class));
        expectLastCall().andThrow(new MessageDeliveryException("Internal error!")).once();
       
        replay(messagingTemplate, channel);

        try {
            endpoint.createProducer().send(message, 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.