[jboss-cvs] JBoss Messaging SVN: r5465 - trunk/src/main/org/jboss/messaging/core/server/impl.
jboss-cvs-commits at lists.jboss.org
jboss-cvs-commits at lists.jboss.org
Fri Dec 5 10:12:12 EST 2008
Author: jmesnil
Date: 2008-12-05 10:12:12 -0500 (Fri, 05 Dec 2008)
New Revision: 5465
Modified:
trunk/src/main/org/jboss/messaging/core/server/impl/ServerSessionImpl.java
Log:
in handleManagementMessage(), send the message only if a replyTo destination was set on the handled message
Modified: trunk/src/main/org/jboss/messaging/core/server/impl/ServerSessionImpl.java
===================================================================
--- trunk/src/main/org/jboss/messaging/core/server/impl/ServerSessionImpl.java 2008-12-05 15:11:25 UTC (rev 5464)
+++ trunk/src/main/org/jboss/messaging/core/server/impl/ServerSessionImpl.java 2008-12-05 15:12:12 UTC (rev 5465)
@@ -2329,10 +2329,13 @@
doSecurity(message);
managementService.handleMessage(message);
-
- message.setDestination((SimpleString)message.getProperty(ClientMessageImpl.REPLYTO_HEADER_NAME));
-
- send(message);
+
+ SimpleString replyTo = (SimpleString)message.getProperty(ClientMessageImpl.REPLYTO_HEADER_NAME);
+ if (replyTo != null)
+ {
+ message.setDestination(replyTo);
+ send(message);
+ }
}
public void handleReplicatedDelivery(final SessionReplicateDeliveryMessage packet)
More information about the jboss-cvs-commits
mailing list