From 0c2544c879e515c4fec96eca385a1dfca5004dd4 Mon Sep 17 00:00:00 2001 From: Keith Wall Date: Fri, 17 May 2013 16:02:09 +0000 Subject: 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 --- .../book/src/java-broker/Java-Broker-Queues-OtherTypes.xml | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) (limited to 'qpid/doc/book') 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 @@ priority - priorities + x-qpid-priorities java.lang.Integer Specifies a priority queue with given number priorities @@ -155,7 +155,14 @@ Creation of an LVQ using the Qpid extension to JMS arguments = new HashMap(); arguments.put("qpid.last_value_queue_key","ISIN"); -((AMQSession) session).createQueue(queueName, autoDelete, durable, exclusive, arguments);]]> +AMQDestination amqQueue = (AMQDestination) context.lookup("myqueue"); +((AMQSession) session).createQueue( + AMQShortString.valueOf(amqQueue.getQueueName()), + amqQueue.isAutoDelete(), + amqQueue.isDurable(), + amqQueue.isExclusive(), + arguments); +]]> The following example illustrates the creation of the sorted queue from a the JMX -- cgit v1.2.1