From 117cf0209e310d78aafae8b3f7d0794bda0ffb29 Mon Sep 17 00:00:00 2001 From: Bosanac Dejan Date: Tue, 14 Oct 2008 12:15:36 +0000 Subject: [PATCH] fix for AMQ-1978 git-svn-id: https://svn.apache.org/repos/asf/activemq/trunk@704508 13f79535-47bb-0310-9956-ffa450edef68 --- .../org/apache/activemq/command/ActiveMQTextMessage.java | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/activemq-core/src/main/java/org/apache/activemq/command/ActiveMQTextMessage.java b/activemq-core/src/main/java/org/apache/activemq/command/ActiveMQTextMessage.java index 0684ecd25b..9af4b91db6 100755 --- a/activemq-core/src/main/java/org/apache/activemq/command/ActiveMQTextMessage.java +++ b/activemq-core/src/main/java/org/apache/activemq/command/ActiveMQTextMessage.java @@ -146,4 +146,12 @@ public class ActiveMQTextMessage extends ActiveMQMessage implements TextMessage } return super.getSize(); } + + public String toString() { + try { + getText(); + } catch (JMSException e) { + } + return super.toString(); + } }