git-svn-id: https://svn.apache.org/repos/asf/activemq/trunk@1085773 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Timothy A. Bish 2011-03-26 17:24:27 +00:00
parent bbd4b33646
commit 53f789b475
1 changed files with 2 additions and 2 deletions

View File

@ -26,7 +26,7 @@ import javax.jms.MessageProducer;
/**
* A useful base class for implementing a {@link MessageProducer}
*
*
*
*/
public abstract class ActiveMQMessageProducerSupport implements MessageProducer, Closeable {
protected ActiveMQSession session;
@ -131,7 +131,7 @@ public abstract class ActiveMQMessageProducerSupport implements MessageProducer,
*/
public void setDeliveryMode(int newDeliveryMode) throws JMSException {
if (newDeliveryMode != DeliveryMode.PERSISTENT && newDeliveryMode != DeliveryMode.NON_PERSISTENT) {
throw new javax.jms.IllegalStateException("unkown delivery mode: " + newDeliveryMode);
throw new javax.jms.IllegalStateException("unknown delivery mode: " + newDeliveryMode);
}
checkClosed();
this.defaultDeliveryMode = newDeliveryMode;