Uploaded image for project: 'Application Server 3  4  5 and 6'
  1. Application Server 3 4 5 and 6
  2. JBAS-3750

log of JMS LinkedException when handling provider failure

    XMLWordPrintable

    Details

      Description

      the JMSException's linked exception data is quite useful to log when debugging issues related to integration with forein jms provider.

      here a possible version of the required change in org.jboss.ejb.plugins.jms.JMSContainerInvoker:handleFailure()

      public void handleFailure(Throwable t)
      {
      log.warn("JMS provider failure detected: ", t);
      failure = t;

      // Helpful to debug issues when WSMQ is the jms provider
      if(t instanceof JMSException) {

      Exception le = ((JMSException)t).getLinkedException();
      if (le != null) {
      log.trace("Linked exception: "+le);
      log.trace("Linked exception: cause: "+le.getCause() );
      }
      }

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Assignee:
                dimitris Dimitris Andreadis
                Reporter:
                luc.texier Luc Texier
              • Votes:
                0 Vote for this issue
                Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: