mirror of https://github.com/apache/activemq.git
fixes for LargeStreamletTest
git-svn-id: https://svn.apache.org/repos/asf/activemq/trunk@520865 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
47510d8eee
commit
332aae366c
|
@ -131,7 +131,7 @@ public class QueueSubscription extends PrefetchSubscription implements LockOwner
|
|||
if (message instanceof ActiveMQMessage) {
|
||||
ActiveMQMessage activeMessage = (ActiveMQMessage) message;
|
||||
try {
|
||||
activeMessage.setBooleanProperty("JMSXGroupFirstForConsumer", true);
|
||||
activeMessage.setBooleanProperty("JMSXGroupFirstForConsumer", true, false);
|
||||
}
|
||||
catch (JMSException e) {
|
||||
log.warn("Failed to set boolean header: " + e, e);
|
||||
|
|
|
@ -381,9 +381,16 @@ public class ActiveMQMessage extends Message implements org.apache.activemq.Mess
|
|||
}
|
||||
});
|
||||
}
|
||||
|
||||
public void setObjectProperty(String name, Object value) throws JMSException{
|
||||
setObjectProperty(name,value,true);
|
||||
}
|
||||
|
||||
public void setObjectProperty(String name, Object value) throws JMSException {
|
||||
checkReadOnlyProperties();
|
||||
public void setObjectProperty(String name, Object value, boolean checkReadOnly) throws JMSException {
|
||||
|
||||
if (checkReadOnly) {
|
||||
checkReadOnlyProperties();
|
||||
}
|
||||
if (name == null || name.equals("")) {
|
||||
throw new IllegalArgumentException("Property name cannot be empty or null");
|
||||
}
|
||||
|
@ -535,7 +542,10 @@ public class ActiveMQMessage extends Message implements org.apache.activemq.Mess
|
|||
}
|
||||
|
||||
public void setBooleanProperty(String name, boolean value) throws JMSException {
|
||||
setObjectProperty(name, value ? Boolean.TRUE : Boolean.FALSE);
|
||||
setBooleanProperty(name,value,true);
|
||||
}
|
||||
public void setBooleanProperty(String name, boolean value,boolean checkReadOnly) throws JMSException {
|
||||
setObjectProperty(name, value ? Boolean.TRUE : Boolean.FALSE,checkReadOnly);
|
||||
}
|
||||
|
||||
public void setByteProperty(String name, byte value) throws JMSException {
|
||||
|
|
Loading…
Reference in New Issue