activemq-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rajdav...@apache.org
Subject svn commit: r374101 - /incubator/activemq/trunk/activemq-core/src/main/java/org/apache/activemq/ActiveMQSession.java
Date Wed, 01 Feb 2006 16:29:00 GMT
Author: rajdavies
Date: Wed Feb  1 08:28:57 2006
New Revision: 374101

URL: http://svn.apache.org/viewcvs?rev=374101&view=rev
Log:
log execption and fire to exception listener if exception thrown 
in run() method

Modified:
    incubator/activemq/trunk/activemq-core/src/main/java/org/apache/activemq/ActiveMQSession.java

Modified: incubator/activemq/trunk/activemq-core/src/main/java/org/apache/activemq/ActiveMQSession.java
URL: http://svn.apache.org/viewcvs/incubator/activemq/trunk/activemq-core/src/main/java/org/apache/activemq/ActiveMQSession.java?rev=374101&r1=374100&r2=374101&view=diff
==============================================================================
--- incubator/activemq/trunk/activemq-core/src/main/java/org/apache/activemq/ActiveMQSession.java
(original)
+++ incubator/activemq/trunk/activemq-core/src/main/java/org/apache/activemq/ActiveMQSession.java
Wed Feb  1 08:28:57 2006
@@ -665,6 +665,8 @@
                 messageListener.onMessage(message);
             } catch ( Throwable e ) {  
                 // TODO: figure out proper way to handle error.
+                log.error("error dispatching message: ",e);
+                connection.onAsyncException(e);
             }
 
             try {



Mime
View raw message