messages from remote broker are now handled correctly again

git-svn-id: https://svn.apache.org/repos/asf/activemq/trunk@514592 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Robert Davies 2007-03-05 07:48:06 +00:00
parent 8432e0aafe
commit df15551a4b
1 changed files with 4 additions and 1 deletions

View File

@ -431,7 +431,10 @@ public class TransportConnection implements Service,Connection,Task,CommandVisit
public Response processMessage(Message messageSend) throws Exception{ public Response processMessage(Message messageSend) throws Exception{
ProducerId producerId=messageSend.getProducerId(); ProducerId producerId=messageSend.getProducerId();
ProducerBrokerExchange producerExchange=getProducerBrokerExchange(producerId); ProducerBrokerExchange producerExchange=getProducerBrokerExchange(producerId);
ProducerState producerState=producerExchange.getProducerState(); ProducerState producerState = null;
if(messageSend.getMessageId().getProducerId().equals(messageSend.getProducerId())){
producerState=producerExchange.getProducerState();
}
if(producerState!=null){ if(producerState!=null){
long seq=messageSend.getMessageId().getProducerSequenceId(); long seq=messageSend.getMessageId().getProducerSequenceId();
if(seq>producerState.getLastSequenceId()){ if(seq>producerState.getLastSequenceId()){