Example usage for javax.jms JMSException printStackTrace

List of usage examples for javax.jms JMSException printStackTrace

Introduction

In this page you can find the example usage for javax.jms JMSException printStackTrace.

Prototype

public void printStackTrace(PrintStream s) 

Source Link

Document

Prints this throwable and its backtrace to the specified print stream.

Usage

From source file:TopicListener.java

private static boolean checkText(Message m, String s) {
    try {//w w  w.  ja v a2  s .c  o  m
        return m instanceof TextMessage && ((TextMessage) m).getText().equals(s);
    } catch (JMSException e) {
        e.printStackTrace(System.out);
        return false;
    }
}

From source file:TopicPublisher.java

Object getReport(Message m) {
    try {//from   w ww.  java 2 s.  c o m
        return ((TextMessage) m).getText();
    } catch (JMSException e) {
        e.printStackTrace(System.out);
        return e.toString();
    }
}

From source file:org.apache.qpid.multiconsumer.AMQTest.java

/**
 * @see javax.jms.ExceptionListener#onException(javax.jms.JMSException)
 *///from ww  w.ja va2s .c o  m
public void onException(JMSException e) {
    System.err.println(e.getMessage());
    e.printStackTrace(System.err);
}