summaryrefslogtreecommitdiff
path: root/qpid/java
diff options
context:
space:
mode:
authorAidan Skinner <aidan@apache.org>2008-10-15 14:15:58 +0000
committerAidan Skinner <aidan@apache.org>2008-10-15 14:15:58 +0000
commit5fd9c10b439c33fcd3a15ec101f903abbeeb5ab0 (patch)
treee5992aca5f4a50741bc2dacbbb5b754d7612f263 /qpid/java
parent0a6c8a42af4f93239da33850457925bfe544aeed (diff)
downloadqpid-python-5fd9c10b439c33fcd3a15ec101f903abbeeb5ab0.tar.gz
QPID-1356: Write message to disk before delivering it to queues.
git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk@704925 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'qpid/java')
-rw-r--r--qpid/java/broker/src/main/java/org/apache/qpid/server/queue/IncomingMessage.java7
1 files changed, 4 insertions, 3 deletions
diff --git a/qpid/java/broker/src/main/java/org/apache/qpid/server/queue/IncomingMessage.java b/qpid/java/broker/src/main/java/org/apache/qpid/server/queue/IncomingMessage.java
index fc96aa901a..896747fc83 100644
--- a/qpid/java/broker/src/main/java/org/apache/qpid/server/queue/IncomingMessage.java
+++ b/qpid/java/broker/src/main/java/org/apache/qpid/server/queue/IncomingMessage.java
@@ -181,6 +181,10 @@ public class IncomingMessage implements Filterable<RuntimeException>
throw new UnauthorizedAccessException("Acccess Refused",message);
}
+ // we then allow the transactional context to do something with the message content
+ // now that it has all been received, before we attempt delivery
+ _txnContext.messageFullyReceived(isPersistent());
+
if ((_destinationQueues == null) || _destinationQueues.size() == 0)
{
@@ -223,9 +227,6 @@ public class IncomingMessage implements Filterable<RuntimeException>
}
}
- // we then allow the transactional context to do something with the message content
- // now that it has all been received, before we attempt delivery
- _txnContext.messageFullyReceived(isPersistent());
message.clearStoreContext();
return message;
}