You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@activemq.apache.org by ra...@apache.org on 2007/03/05 08:48:07 UTC
svn commit: r514592 -
/activemq/trunk/activemq-core/src/main/java/org/apache/activemq/broker/TransportConnection.java
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()){