<html><body><div style="color:#000; background-color:#fff; font-family:lucida console, sans-serif;font-size:12pt"><div><span>Am I correctly interpreting the following link:</span></div><div><span></span>&nbsp;</div><div><span><a href="http://www.rabbitmq.com/semantics.html">http://www.rabbitmq.com/semantics.html</a></span></div><div><span></span>&nbsp;</div><div><span>I can have publish inside a transaction, but not receive inside a tx,&nbsp;and the transaction is not atomic ?</span></div><div><span></span>&nbsp;</div><div><span>Could someone please post a link to where I can view an example of a transaction in Rabbit ?</span></div><div><span></span>&nbsp;</div><div><span>Thanks</span></div><div><br></div>  <div style="font-family: lucida console, sans-serif; font-size: 12pt;"> <div style="font-family: times new roman, new york, times, serif; font-size: 12pt;"> <div dir="ltr"> <font size="2" face="Arial"> <div style="margin: 5px 0px; padding: 0px;
 border: 1px solid rgb(204, 204, 204); height: 0px; line-height: 0; font-size: 0px;" class="hr" contentEditable="false" readonly="true"></div>  <b><span style="font-weight: bold;">From:</span></b> John Smith &lt;roanoketech@yahoo.com&gt;<br> <b><span style="font-weight: bold;">To:</span></b> "rabbitmq-discuss@lists.rabbitmq.com" &lt;rabbitmq-discuss@lists.rabbitmq.com&gt; <br> <b><span style="font-weight: bold;">Sent:</span></b> Monday, December 17, 2012 10:31 AM<br> <b><span style="font-weight: bold;">Subject:</span></b> [rabbitmq-discuss] Java queueDeclare statement<br> </font> </div> <wbr>
<meta content="off" http-equiv="x-dns-prefetch-control"><div id="yiv1758753865"><div><div style="color: rgb(0, 0, 0); font-family: lucida console, sans-serif; font-size: 12pt; background-color: rgb(255, 255, 255);"><div>Maybe its just that my Java is very rusty, but I see a difference bewtween the AQPI guide and the ...</div><div>&nbsp;</div><div>I am using the following link to the API guide</div><div>&nbsp;</div><div>http://www.rabbitmq.com/api-guide.html<var id="yiv1758753865yui-ie-cursor"></var></div><div>&nbsp;</div><div>The API Guide uses the following (and I can get this command to work)</div><div>&nbsp;</div><pre class="yiv1758753865sourcecode">channel.queueDeclare(<b>queueName</b>, <b>true</b>, <b>false</b>, <b>false</b>, <b>null</b>);</pre><div style="color: rgb(0, 0, 0); font-family: times new roman, new york, times, serif; font-size: 16px; font-style: normal; background-color: transparent;">However, in the in the Java Interface I found in
 this page</div><div style="color: rgb(0, 0, 0); font-family: times new roman, new york, times, serif; font-size: 16px; font-style: normal; background-color: transparent;" class="yiv1758753865ms__id6169">&nbsp;</div><div style="color: rgb(0, 0, 0); font-family: times new roman, new york, times, serif; font-size: 16px; font-style: normal; background-color: transparent;" class="yiv1758753865ms__id6169">http://www.rabbitmq.com/releases/rabbitmq-java-client/v1.7.0/rabbitmq-java-client-javadoc-1.7.0/com/rabbitmq/client/Channel.html</div><div style="color: rgb(0, 0, 0); font-family: times new roman, new york, times, serif; font-size: 16px; font-style: normal; background-color: transparent;" class="yiv1758753865ms__id6169">&nbsp;</div><div style="color: rgb(0, 0, 0); font-family: times new roman, new york, times, serif; font-size: 16px; font-style: normal; background-color: transparent;" class="yiv1758753865ms__id6169">I see the
 following:</div><div style="color: rgb(0, 0, 0); font-family: times new roman, new york, times, serif; font-size: 16px; font-style: normal; background-color: transparent;" class="yiv1758753865ms__id6169">&nbsp;</div><div style="color: rgb(0, 0, 0); font-family: times new roman, new york, times, serif; font-size: 16px; font-style: normal; background-color: transparent;" class="yiv1758753865ms__id6169"><table border="1" cellSpacing="0" cellPadding="3" width="100%"><tbody><tr class="yiv1758753865TableRowColor" bgColor="white"><td vAlign="top" width="1%" align="right"><font size="-1">
<code>&nbsp;<a title="interface in com.rabbitmq.client" href="http://www.rabbitmq.com/releases/rabbitmq-java-client/v1.7.0/rabbitmq-java-client-javadoc-1.7.0/com/rabbitmq/client/AMQP.Queue.DeclareOk.html" rel="nofollow" target="_blank"><font color="#0066cc">AMQP.Queue.DeclareOk</font></a></code></font></td>
<td><code><b><a href="http://www.rabbitmq.com/releases/rabbitmq-java-client/v1.7.0/rabbitmq-java-client-javadoc-1.7.0/com/rabbitmq/client/Channel.html#queueDeclare%28%29" rel="nofollow" target="_blank"><font color="#0066cc">queueDeclare</font></a></b>()</code>

<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Actively declare a server-named exclusive, autodelete, non-durable queue.</td>
</tr>
<tr class="yiv1758753865TableRowColor" bgColor="white">
<td vAlign="top" width="1%" align="right"><font size="-1">
<code>&nbsp;<a title="interface in com.rabbitmq.client" href="http://www.rabbitmq.com/releases/rabbitmq-java-client/v1.7.0/rabbitmq-java-client-javadoc-1.7.0/com/rabbitmq/client/AMQP.Queue.DeclareOk.html" rel="nofollow" target="_blank"><font color="#0066cc">AMQP.Queue.DeclareOk</font></a></code></font></td>
<td><code><b><a href="http://www.rabbitmq.com/releases/rabbitmq-java-client/v1.7.0/rabbitmq-java-client-javadoc-1.7.0/com/rabbitmq/client/Channel.html#queueDeclare%28java.lang.String%29" rel="nofollow" target="_blank"><font color="#0066cc">queueDeclare</font></a></b>(java.lang.String&nbsp;queue)</code>

<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Actively declare a non-exclusive, non-autodelete, non-durable queue</td>
</tr>
<tr class="yiv1758753865TableRowColor" bgColor="white">
<td vAlign="top" width="1%" align="right"><font size="-1">
<code>&nbsp;<a title="interface in com.rabbitmq.client" href="http://www.rabbitmq.com/releases/rabbitmq-java-client/v1.7.0/rabbitmq-java-client-javadoc-1.7.0/com/rabbitmq/client/AMQP.Queue.DeclareOk.html" rel="nofollow" target="_blank"><font color="#0066cc">AMQP.Queue.DeclareOk</font></a></code></font></td>
<td><code><b><a href="http://www.rabbitmq.com/releases/rabbitmq-java-client/v1.7.0/rabbitmq-java-client-javadoc-1.7.0/com/rabbitmq/client/Channel.html#queueDeclare%28java.lang.String,%20boolean%29" rel="nofollow" target="_blank"><font color="#0066cc">queueDeclare</font></a></b>(java.lang.String&nbsp;queue,
             boolean&nbsp;durable)</code>

<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Actively declare a non-exclusive, non-autodelete queue
 The name of the new queue is held in the "queue" field of the <a title="interface in com.rabbitmq.client" href="http://www.rabbitmq.com/releases/rabbitmq-java-client/v1.7.0/rabbitmq-java-client-javadoc-1.7.0/com/rabbitmq/client/AMQP.Queue.DeclareOk.html" rel="nofollow" target="_blank"><code><font color="#0066cc">AMQP.Queue.DeclareOk</font></code></a> result.</td>
</tr>
<tr class="yiv1758753865TableRowColor" bgColor="white">
<td vAlign="top" width="1%" align="right"><font size="-1">
<code>&nbsp;<a title="interface in com.rabbitmq.client" href="http://www.rabbitmq.com/releases/rabbitmq-java-client/v1.7.0/rabbitmq-java-client-javadoc-1.7.0/com/rabbitmq/client/AMQP.Queue.DeclareOk.html" rel="nofollow" target="_blank"><font color="#0066cc">AMQP.Queue.DeclareOk</font></a></code></font></td>
<td><code><b><a href="http://www.rabbitmq.com/releases/rabbitmq-java-client/v1.7.0/rabbitmq-java-client-javadoc-1.7.0/com/rabbitmq/client/Channel.html#queueDeclare%28java.lang.String,%20boolean,%20boolean,%20boolean,%20boolean,%20java.util.Map%29" rel="nofollow" target="_blank"><font color="#0066cc">queueDeclare</font></a></b>(java.lang.String&nbsp;queue,
             boolean&nbsp;passive,
             boolean&nbsp;durable,
             boolean&nbsp;exclusive,
             boolean&nbsp;autoDelete,
             java.util.Map&lt;java.lang.String,java.lang.Object&gt;&nbsp;arguments)</code>

<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Declare a queue</td></tr></tbody></table></div><div>
<wbr><wbr>    None of these match the one I found in the API guide.&nbsp; The closest is the last one in the table, but that includes&nbsp; a reference to the 'passive' prameter that is&nbsp;aparently not included in&nbsp;the reference I found in the API guide</div><div>&nbsp;</div><div>What am I missing, or is my Java simply weak ?</div><div>&nbsp;</div><div>Thanks&nbsp;&nbsp;&nbsp; </div></div></div></div><meta content="on" http-equiv="x-dns-prefetch-control"><wbr>_______________________________________________<wbr>rabbitmq-discuss mailing list<wbr><a href="mailto:rabbitmq-discuss@lists.rabbitmq.com" ymailto="mailto:rabbitmq-discuss@lists.rabbitmq.com">rabbitmq-discuss@lists.rabbitmq.com</a><wbr><a href="https://lists.rabbitmq.com/cgi-bin/mailman/listinfo/rabbitmq-discuss" target="_blank">https://lists.rabbitmq.com/cgi-bin/mailman/listinfo/rabbitmq-discuss</a><wbr><wbr><wbr> </div> </div>  </div></body></html>