diff options
| author | Aidan Skinner <aidan@apache.org> | 2008-10-15 14:34:32 +0000 |
|---|---|---|
| committer | Aidan Skinner <aidan@apache.org> | 2008-10-15 14:34:32 +0000 |
| commit | 6879a1149f0733b67d2073a7b0ccfed7f517d994 (patch) | |
| tree | 59218ce3ce968a60df4e404cd9f8ca9041b517d2 /java/broker/src/main | |
| parent | 3accfa870e781bdbfb7b4b67b355b7f583e70a07 (diff) | |
| download | qpid-python-6879a1149f0733b67d2073a7b0ccfed7f517d994.tar.gz | |
QPID-1356: move commit even higher, before the auth check.
git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@704928 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'java/broker/src/main')
| -rw-r--r-- | java/broker/src/main/java/org/apache/qpid/server/queue/IncomingMessage.java | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/java/broker/src/main/java/org/apache/qpid/server/queue/IncomingMessage.java b/java/broker/src/main/java/org/apache/qpid/server/queue/IncomingMessage.java index 896747fc83..b994040131 100644 --- a/java/broker/src/main/java/org/apache/qpid/server/queue/IncomingMessage.java +++ b/java/broker/src/main/java/org/apache/qpid/server/queue/IncomingMessage.java @@ -173,6 +173,10 @@ public class IncomingMessage implements Filterable<RuntimeException> message.setExpiration(_expiration); message.setClientIdentifier(_publisher.getSessionIdentifier()); + // 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()); + AMQShortString userID = getContentHeaderBody().properties instanceof BasicContentHeaderProperties ? ((BasicContentHeaderProperties) getContentHeaderBody().properties).getUserId() : null; @@ -181,10 +185,6 @@ 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) { |
