[jboss-cvs] JBossAS SVN: r62241 - trunk/jbossmq/src/main/org/jboss/mq.

jboss-cvs-commits at lists.jboss.org jboss-cvs-commits at lists.jboss.org
Tue Apr 10 13:22:39 EDT 2007


Author: adrian at jboss.org
Date: 2007-04-10 13:22:39 -0400 (Tue, 10 Apr 2007)
New Revision: 62241

Modified:
   trunk/jbossmq/src/main/org/jboss/mq/SpyConnectionConsumer.java
Log:
[JBAS-4312] - Fire the exception listener if the ConnectionConsumer thread ends in error

Modified: trunk/jbossmq/src/main/org/jboss/mq/SpyConnectionConsumer.java
===================================================================
--- trunk/jbossmq/src/main/org/jboss/mq/SpyConnectionConsumer.java	2007-04-10 17:21:59 UTC (rev 62240)
+++ trunk/jbossmq/src/main/org/jboss/mq/SpyConnectionConsumer.java	2007-04-10 17:22:39 UTC (rev 62241)
@@ -1,24 +1,24 @@
 /*
-* JBoss, Home of Professional Open Source
-* Copyright 2005, JBoss Inc., and individual contributors as indicated
-* by the @authors tag. See the copyright.txt in the distribution for a
-* full listing of individual contributors.
-*
-* This is free software; you can redistribute it and/or modify it
-* under the terms of the GNU Lesser General Public License as
-* published by the Free Software Foundation; either version 2.1 of
-* the License, or (at your option) any later version.
-*
-* This software is distributed in the hope that it will be useful,
-* but WITHOUT ANY WARRANTY; without even the implied warranty of
-* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
-* Lesser General Public License for more details.
-*
-* You should have received a copy of the GNU Lesser General Public
-* License along with this software; if not, write to the Free
-* Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
-* 02110-1301 USA, or see the FSF site: http://www.fsf.org.
-*/
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2006, Red Hat Middleware LLC, and individual contributors
+ * as indicated by the @author tags. See the copyright.txt file in the
+ * distribution for a full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+ */
 package org.jboss.mq;
 
 import java.util.ArrayList;
@@ -333,7 +333,6 @@
       }
       catch (Throwable t)
       {
-         log.warn("Connection consumer closing due to error in listening thread " + this, t);
          try
          {
             for (int i = 0; i < mesList.size(); i++)
@@ -356,6 +355,8 @@
             if (trace)
                log.trace("Ignoring error during close " + this, ignore);
          }
+         
+         connection.asynchFailure("Connection consumer closing due to error in listening thread" + this, t);
       }
    }   
 




More information about the jboss-cvs-commits mailing list