git-svn-id: https://svn.apache.org/repos/asf/activemq/trunk@646400 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Robert Davies 2008-04-09 15:14:58 +00:00
parent 4acbd5900a
commit 50bc597fa8
1 changed files with 1 additions and 1 deletions

View File

@ -1580,7 +1580,7 @@ public class ActiveMQSession implements Session, QueueSession, TopicSession, Sta
checkClosed(); checkClosed();
if (destination.isTemporary() && connection.isDeleted(destination)) { if (destination.isTemporary() && connection.isDeleted(destination)) {
throw new JMSException("Cannot publish to a deleted Destination: " + destination); throw new InvalidDestinationException("Cannot publish to a deleted Destination: " + destination);
} }
synchronized (sendMutex) { synchronized (sendMutex) {
// tell the Broker we are about to start a new transaction // tell the Broker we are about to start a new transaction