mirror of https://github.com/apache/activemq.git
Applying patch suggested by sanders@apache.org to fix stomp priority bug.
git-svn-id: https://svn.apache.org/repos/asf/incubator/activemq/trunk@359240 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
5cea195af2
commit
62b2f7fe53
|
@ -96,9 +96,9 @@ class Send implements StompCommand {
|
||||||
if (expiration != null) {
|
if (expiration != null) {
|
||||||
msg.setJMSExpiration(asLong(expiration));
|
msg.setJMSExpiration(asLong(expiration));
|
||||||
}
|
}
|
||||||
Object priority = headers.remove(Stomp.Headers.Send.PRORITY);
|
Object priority = headers.remove(Stomp.Headers.Send.PRIORITY);
|
||||||
if (priority != null) {
|
if (priority != null) {
|
||||||
msg.setJMSExpiration(asInt(priority));
|
msg.setJMSPriority(asInt(priority));
|
||||||
}
|
}
|
||||||
|
|
||||||
msg.setJMSReplyTo(DestinationNamer.convert((String) headers.remove(Stomp.Headers.Send.REPLY_TO)));
|
msg.setJMSReplyTo(DestinationNamer.convert((String) headers.remove(Stomp.Headers.Send.REPLY_TO)));
|
||||||
|
|
|
@ -58,7 +58,7 @@ public interface Stomp {
|
||||||
String CORRELATION_ID = "correlation-id";
|
String CORRELATION_ID = "correlation-id";
|
||||||
String REPLY_TO = "reply-to";
|
String REPLY_TO = "reply-to";
|
||||||
String EXPIRATION_TIME = "expires";
|
String EXPIRATION_TIME = "expires";
|
||||||
String PRORITY = "priority";
|
String PRIORITY = "priority";
|
||||||
String TYPE = "type";
|
String TYPE = "type";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue