Package org.springframework.integration

Examples of org.springframework.integration.MessagingException


        snsTestProxy.dispatchMessage(serializedMessage);
      }

    } catch (MessageMarshallerException e) {
      log.error(e.getMessage(), e);
      throw new MessagingException(e.getMessage(), e.getCause());
    }

    return message.getPayload();
  }
View Full Code Here


      log.debug("NEW HEADERS: " + newMessage.getHeaders().toString());

      return super.transform(newMessage);
    }
    catch (Exception e) {
      throw new MessagingException(message, "failed to transform message headers", e);
    }
  }
View Full Code Here

        sent = future.get(timeout, TimeUnit.MILLISECONDS);
      }
    } catch (InterruptedException e) {
      log.warn(e.getMessage(), e);
    } catch (Exception e) {
      throw new MessagingException(e.getMessage(), e);
    } finally {
      if (!sent && !future.isDone()) {
        future.cancel(true);
      }
    }
View Full Code Here

        properties = jsonObject.getJSONObject(PROPERTIES_KEY);
        headers = jsonObject.getJSONObject(HEADERS_KEY);
      }

    } catch (Exception e) {
      throw new MessagingException(e.getMessage(), e);
    }
  }
View Full Code Here

      }
      if (headers != null) {
        copyHeaders(builder);
      }
    } catch (Exception e) {
      throw new MessagingException(e.getMessage(), e);
    }
    return builder.build();
  }
View Full Code Here

        public Map<String, String> getProperties() {
          return messageProperties;
        }
      });
    } catch (Exception e) {
      throw new MessagingException(e.getMessage(), e);
    }
  }
View Full Code Here

*/

public class ExceptionHandler {
  @ServiceActivator
  public void rethrowException(Message<?> message) {
    MessagingException me = (MessagingException) message.getPayload();
    throw new MessagingException("Rethrowing exception", me);

  }
View Full Code Here

            return false;
          }
        }
      }
      catch (UnsupportedEncodingException e) {
        throw new MessagingException("UTF-8 Conversion error");
      }
    }
    return true;
  }
View Full Code Here

        }
        results.add(value);

      }
    } catch (Exception e) {
      throw new MessagingException("Caught Exception while mapping the result sequence to string",e);
    }
    return results;
  }
View Full Code Here

      }
      String xQuery = builder.toString();
      reader.close();
      return xQuery;
    } catch (IOException e) {
      throw new MessagingException("Error while reading the xQuery resource", e);
    } finally {
      if(reader != null) {
        try {
          reader.close();
        } catch (IOException e) {
View Full Code Here

TOP

Related Classes of org.springframework.integration.MessagingException

Copyright © 2018 www.massapicom. 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.