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 | 5332beeab6771540fd6e9cd6540fd02184920442 (patch) | |
| tree | 1f5274d15f54c8766527bcf8b3a62b959fe96797 /qpid/java/client/example/src | |
| parent | b902d6d427143c7ef2e5d8bf9817eba4ca68f2ad (diff) | |
| download | qpid-python-5332beeab6771540fd6e9cd6540fd02184920442.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@648784 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'qpid/java/client/example/src')
2 files changed, 3 insertions, 2 deletions
diff --git a/qpid/java/client/example/src/main/java/org/apache/qpid/example/jmsexample/direct/Producer.java b/qpid/java/client/example/src/main/java/org/apache/qpid/example/jmsexample/direct/Producer.java index b5f8dfda9b..259756764c 100644 --- a/qpid/java/client/example/src/main/java/org/apache/qpid/example/jmsexample/direct/Producer.java +++ b/qpid/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/qpid/java/client/example/src/main/java/org/apache/qpid/example/jmsexample/fanout/Producer.java b/qpid/java/client/example/src/main/java/org/apache/qpid/example/jmsexample/fanout/Producer.java index 6438e74ac7..2e360f37bb 100755 --- a/qpid/java/client/example/src/main/java/org/apache/qpid/example/jmsexample/fanout/Producer.java +++ b/qpid/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; /** |
