summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKeith Wall <kwall@apache.org>2013-05-17 16:02:09 +0000
committerKeith Wall <kwall@apache.org>2013-05-17 16:02:09 +0000
commit0c2544c879e515c4fec96eca385a1dfca5004dd4 (patch)
tree13bc4601f54882199b34db93050206e7b2f48e44
parentf159ff3c536a5954c305274b69697d5128c325da (diff)
downloadqpid-python-0c2544c879e515c4fec96eca385a1dfca5004dd4.tar.gz
NO-JIRA: Fix incorrect queue declare argument for priority queue type. Improve AMQSession#createQueue example
git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1483887 13f79535-47bb-0310-9956-ffa450edef68
-rw-r--r--qpid/doc/book/src/java-broker/Java-Broker-Queues-OtherTypes.xml11
1 files changed, 9 insertions, 2 deletions
diff --git a/qpid/doc/book/src/java-broker/Java-Broker-Queues-OtherTypes.xml b/qpid/doc/book/src/java-broker/Java-Broker-Queues-OtherTypes.xml
index f24b1fd06d..8642e20cd0 100644
--- a/qpid/doc/book/src/java-broker/Java-Broker-Queues-OtherTypes.xml
+++ b/qpid/doc/book/src/java-broker/Java-Broker-Queues-OtherTypes.xml
@@ -127,7 +127,7 @@
<tbody>
<row>
<entry>priority</entry>
- <entry>priorities</entry>
+ <entry>x-qpid-priorities</entry>
<entry>java.lang.Integer</entry>
<entry>Specifies a priority queue with given number priorities</entry>
</row>
@@ -155,7 +155,14 @@
<title>Creation of an LVQ using the Qpid extension to JMS</title>
<programlisting><![CDATA[Map<String,Object> arguments = new HashMap<String, Object>();
arguments.put("qpid.last_value_queue_key","ISIN");
-((AMQSession<?,?>) session).createQueue(queueName, autoDelete, durable, exclusive, arguments);]]></programlisting>
+AMQDestination amqQueue = (AMQDestination) context.lookup("myqueue");
+((AMQSession<?,?>) session).createQueue(
+ AMQShortString.valueOf(amqQueue.getQueueName()),
+ amqQueue.isAutoDelete(),
+ amqQueue.isDurable(),
+ amqQueue.isExclusive(),
+ arguments);
+]]></programlisting>
</example>
<para> The following example illustrates the creation of the sorted queue from a the JMX