activemq-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rajdav...@apache.org
Subject svn commit: r514592 - /activemq/trunk/activemq-core/src/main/java/org/apache/activemq/broker/TransportConnection.java
Date Mon, 05 Mar 2007 07:48:07 GMT
Author: rajdavies
Date: Sun Mar  4 23:48:06 2007
New Revision: 514592

URL: http://svn.apache.org/viewvc?view=rev&rev=514592
Log:
messages from remote broker are now handled correctly again

Modified:
    activemq/trunk/activemq-core/src/main/java/org/apache/activemq/broker/TransportConnection.java

Modified: activemq/trunk/activemq-core/src/main/java/org/apache/activemq/broker/TransportConnection.java
URL: http://svn.apache.org/viewvc/activemq/trunk/activemq-core/src/main/java/org/apache/activemq/broker/TransportConnection.java?view=diff&rev=514592&r1=514591&r2=514592
==============================================================================
--- activemq/trunk/activemq-core/src/main/java/org/apache/activemq/broker/TransportConnection.java
(original)
+++ activemq/trunk/activemq-core/src/main/java/org/apache/activemq/broker/TransportConnection.java
Sun Mar  4 23:48:06 2007
@@ -431,7 +431,10 @@
     public Response processMessage(Message messageSend) throws Exception{
         ProducerId producerId=messageSend.getProducerId();
         ProducerBrokerExchange producerExchange=getProducerBrokerExchange(producerId);
-        ProducerState producerState=producerExchange.getProducerState();
+        ProducerState producerState = null;
+        if(messageSend.getMessageId().getProducerId().equals(messageSend.getProducerId())){
+            producerState=producerExchange.getProducerState();
+        }
         if(producerState!=null){
             long seq=messageSend.getMessageId().getProducerSequenceId();
             if(seq>producerState.getLastSequenceId()){



Mime
View raw message