log execption and fire to exception listener if exception thrown

in run() method

git-svn-id: https://svn.apache.org/repos/asf/incubator/activemq/trunk@374101 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Robert Davies 2006-02-01 16:28:57 +00:00
parent a4b970bebc
commit 7f634906d0
1 changed files with 2 additions and 0 deletions

View File

@ -665,6 +665,8 @@ public class ActiveMQSession implements Session, QueueSession, TopicSession, Sta
messageListener.onMessage(message);
} catch ( Throwable e ) {
// TODO: figure out proper way to handle error.
log.error("error dispatching message: ",e);
connection.onAsyncException(e);
}
try {