diff options
| author | Rafael H. Schloming <rhs@apache.org> | 2008-04-16 18:25:29 +0000 |
|---|---|---|
| committer | Rafael H. Schloming <rhs@apache.org> | 2008-04-16 18:25:29 +0000 |
| commit | c6faf3b28d0cf89051b2bff6476f3113285ed9a6 (patch) | |
| tree | 020dda895ee9b7c971c9d02d37b06f09b3ca629d /java/client/example/src | |
| parent | b5ddef8f0f0d612565c05613bc89cdadb5ddb9b7 (diff) | |
| download | qpid-python-c6faf3b28d0cf89051b2bff6476f3113285ed9a6.tar.gz | |
QPID-901: updated the JMS examples to use legal delivery mode values as they are now checked with the 0-10 final updates
git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@648784 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'java/client/example/src')
2 files changed, 3 insertions, 2 deletions
diff --git a/java/client/example/src/main/java/org/apache/qpid/example/jmsexample/direct/Producer.java b/java/client/example/src/main/java/org/apache/qpid/example/jmsexample/direct/Producer.java index b5f8dfda9b..259756764c 100644 --- a/java/client/example/src/main/java/org/apache/qpid/example/jmsexample/direct/Producer.java +++ b/java/client/example/src/main/java/org/apache/qpid/example/jmsexample/direct/Producer.java @@ -24,6 +24,7 @@ import java.util.Properties; import javax.jms.Connection; import javax.jms.ConnectionFactory; +import javax.jms.DeliveryMode; import javax.jms.Destination; import javax.jms.ExceptionListener; import javax.jms.JMSException; @@ -43,7 +44,7 @@ public class Producer private static final String CLASS = "Producer"; private int numMessages = 10; - private short deliveryMode = 0; + private short deliveryMode = DeliveryMode.NON_PERSISTENT; /** * Create a Producer client. diff --git a/java/client/example/src/main/java/org/apache/qpid/example/jmsexample/fanout/Producer.java b/java/client/example/src/main/java/org/apache/qpid/example/jmsexample/fanout/Producer.java index 6438e74ac7..2e360f37bb 100755 --- a/java/client/example/src/main/java/org/apache/qpid/example/jmsexample/fanout/Producer.java +++ b/java/client/example/src/main/java/org/apache/qpid/example/jmsexample/fanout/Producer.java @@ -36,7 +36,7 @@ public class Producer /* The queue name */ private int numMessages = 10; - private short deliveryMode = 0; + private short deliveryMode = DeliveryMode.NON_PERSISTENT; /** |
