qpid-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From kw...@apache.org
Subject svn commit: r1483887 - /qpid/trunk/qpid/doc/book/src/java-broker/Java-Broker-Queues-OtherTypes.xml
Date Fri, 17 May 2013 16:02:09 GMT
Author: kwall
Date: Fri May 17 16:02:09 2013
New Revision: 1483887

URL: http://svn.apache.org/r1483887
Log:
NO-JIRA: Fix incorrect queue declare argument for priority queue type.  Improve AMQSession#createQueue
example

Modified:
    qpid/trunk/qpid/doc/book/src/java-broker/Java-Broker-Queues-OtherTypes.xml

Modified: qpid/trunk/qpid/doc/book/src/java-broker/Java-Broker-Queues-OtherTypes.xml
URL: http://svn.apache.org/viewvc/qpid/trunk/qpid/doc/book/src/java-broker/Java-Broker-Queues-OtherTypes.xml?rev=1483887&r1=1483886&r2=1483887&view=diff
==============================================================================
--- qpid/trunk/qpid/doc/book/src/java-broker/Java-Broker-Queues-OtherTypes.xml (original)
+++ qpid/trunk/qpid/doc/book/src/java-broker/Java-Broker-Queues-OtherTypes.xml Fri May 17
16:02:09 2013
@@ -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



---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@qpid.apache.org
For additional commands, e-mail: commits-help@qpid.apache.org


Mime
View raw message