Examples of DestinationResolutionException


Examples of org.springframework.jms.support.destination.DestinationResolutionException

    if (this.destinationResolver != null) {
      try {
        destination = this.destinationResolver.resolveDestinationName(null, destinationName, pubSubDomain);
      }
      catch (JMSException ex) {
        throw new DestinationResolutionException("Cannot resolve destination name [" + destinationName + "]", ex);
      }
    }
    bw.setPropertyValue("destination", destination);

    bw.setPropertyValue("destinationType", pubSubDomain ? Topic.class.getName() : Queue.class.getName());
View Full Code Here

Examples of org.springframework.jms.support.destination.DestinationResolutionException

    if (this.destinationResolver != null) {
      try {
        destination = this.destinationResolver.resolveDestinationName(null, destinationName, pubSubDomain);
      }
      catch (JMSException ex) {
        throw new DestinationResolutionException("Cannot resolve destination name [" + destinationName + "]", ex);
      }
    }
    bw.setPropertyValue("destination", destination);
    bw.setPropertyValue("destinationType", pubSubDomain ? Topic.class.getName() : Queue.class.getName());
View Full Code Here

Examples of org.springframework.jms.support.destination.DestinationResolutionException

    private static class MyDestinationResolver implements DestinationResolver {

        @Override
        public Destination resolveDestinationName(Session session, String destinationName, boolean pubSubDomain) throws JMSException {
            throw new DestinationResolutionException("Forced");
        }
View Full Code Here

Examples of org.springframework.jms.support.destination.DestinationResolutionException

    if (this.destinationResolver != null) {
      try {
        destination = this.destinationResolver.resolveDestinationName(null, destinationName, pubSubDomain);
      }
      catch (JMSException ex) {
        throw new DestinationResolutionException("Cannot resolve destination name [" + destinationName + "]", ex);
      }
    }
    bw.setPropertyValue("destination", destination);
    bw.setPropertyValue("destinationType", pubSubDomain ? Topic.class.getName() : Queue.class.getName());
View Full Code Here

Examples of org.springframework.jms.support.destination.DestinationResolutionException

    if (this.destinationResolver != null) {
      try {
        destination = this.destinationResolver.resolveDestinationName(null, destinationName, pubSubDomain);
      }
      catch (JMSException ex) {
        throw new DestinationResolutionException("Cannot resolve destination name [" + destinationName + "]", ex);
      }
    }
    bw.setPropertyValue("destination", destination);
    bw.setPropertyValue("destinationType", pubSubDomain ? Topic.class.getName() : Queue.class.getName());
View Full Code Here

Examples of org.springframework.messaging.core.DestinationResolutionException

  }

  protected MessagingException convertJmsException(JmsException ex) {
    if (ex instanceof org.springframework.jms.support.destination.DestinationResolutionException ||
        ex instanceof InvalidDestinationException) {
      return new DestinationResolutionException(ex.getMessage(), ex);
    }
    if (ex instanceof org.springframework.jms.support.converter.MessageConversionException) {
      return new MessageConversionException(ex.getMessage(), ex);
    }
    // Fallback
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.