Author: rhs
Date: Wed Apr 16 11:25:29 2008
New Revision: 648784
URL: http://svn.apache.org/viewvc?rev=648784&view=rev
Log:
QPID-901: updated the JMS examples to use legal delivery mode values as they
are now checked with the 0-10 final updates
Modified:
incubator/qpid/trunk/qpid/java/client/example/src/main/java/org/apache/qpid/example/jmsexample/direct/Producer.java
incubator/qpid/trunk/qpid/java/client/example/src/main/java/org/apache/qpid/example/jmsexample/fanout/Producer.java
Modified:
incubator/qpid/trunk/qpid/java/client/example/src/main/java/org/apache/qpid/example/jmsexample/direct/Producer.java
URL:
http://svn.apache.org/viewvc/incubator/qpid/trunk/qpid/java/client/example/src/main/java/org/apache/qpid/example/jmsexample/direct/Producer.java?rev=648784&r1=648783&r2=648784&view=diff
==============================================================================
---
incubator/qpid/trunk/qpid/java/client/example/src/main/java/org/apache/qpid/example/jmsexample/direct/Producer.java
(original)
+++
incubator/qpid/trunk/qpid/java/client/example/src/main/java/org/apache/qpid/example/jmsexample/direct/Producer.java
Wed Apr 16 11:25:29 2008
@@ -24,6 +24,7 @@
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 @@
private static final String CLASS = "Producer";
private int numMessages = 10;
- private short deliveryMode = 0;
+ private short deliveryMode = DeliveryMode.NON_PERSISTENT;
/**
* Create a Producer client.
Modified:
incubator/qpid/trunk/qpid/java/client/example/src/main/java/org/apache/qpid/example/jmsexample/fanout/Producer.java
URL:
http://svn.apache.org/viewvc/incubator/qpid/trunk/qpid/java/client/example/src/main/java/org/apache/qpid/example/jmsexample/fanout/Producer.java?rev=648784&r1=648783&r2=648784&view=diff
==============================================================================
---
incubator/qpid/trunk/qpid/java/client/example/src/main/java/org/apache/qpid/example/jmsexample/fanout/Producer.java
(original)
+++
incubator/qpid/trunk/qpid/java/client/example/src/main/java/org/apache/qpid/example/jmsexample/fanout/Producer.java
Wed Apr 16 11:25:29 2008
@@ -36,7 +36,7 @@
/* The queue name */
private int numMessages = 10;
- private short deliveryMode = 0;
+ private short deliveryMode = DeliveryMode.NON_PERSISTENT;
/**