<div dir="ltr">Right - confirms are provided by an extension to AMQP <div><br></div><div><a href="http://www.rabbitmq.com/extensions.html">http://www.rabbitmq.com/extensions.html</a><br></div><div><br></div><div>So the method is not available on the general abstraction, you have to use a RabbitTemplate (which is a Rabbit-specific implementation of the AmqpTemplate interface).</div>
</div><div class="gmail_extra"><br><br><div class="gmail_quote">On Mon, Nov 18, 2013 at 10:36 AM, PATAR, SAGAR <span dir="ltr"><<a href="mailto:sp345s@att.com" target="_blank">sp345s@att.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div lang="EN-US" link="blue" vlink="purple">
<div>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif"">Below are the jar’s I am using .. the version is 1.2.0.RELEASE ..
<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif""><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif"">spring-amqp-1.2.0.RELEASE.jar<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif"">spring-rabbit-1.2.0.RELEASE.jar<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif""><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:Consolas">org.springframework.amqp.core. AmqpTemplate .. doesn’t seems to have a send() method which takes CorrelationData ..
<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:Consolas">but the RabbitTemplate has the method ..<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d"><u></u> <u></u></span></p>
<p class="MsoNormal"><b><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif"">From:</span></b><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif""> <a href="mailto:rabbitmq-discuss-bounces@lists.rabbitmq.com" target="_blank">rabbitmq-discuss-bounces@lists.rabbitmq.com</a> [mailto:<a href="mailto:rabbitmq-discuss-bounces@lists.rabbitmq.com" target="_blank">rabbitmq-discuss-bounces@lists.rabbitmq.com</a>]
<b>On Behalf Of </b>Gary Russell<br>
<b>Sent:</b> Friday, November 15, 2013 3:42 PM<br>
<b>To:</b> Discussions about RabbitMQ<br>
<b>Subject:</b> Re: [rabbitmq-discuss] no error or exception<u></u><u></u></span></p>
<p class="MsoNormal"><u></u> <u></u></p>
<div>
<p class="MsoNormal">Which version were you using? This was added in 1.1.0, released in May 2012.<u></u><u></u></p>
<div>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
<div>
<p class="MsoNormal">You must still have an incorrect spring-rabbit jar on the classpath - I am looking at the code in the 1.2.0 jar and it's clearly there.<u></u><u></u></p>
<div>
<p class="MsoNormal" style="margin-bottom:12.0pt"><u></u> <u></u></p>
<div>
<p class="MsoNormal">On Fri, Nov 15, 2013 at 3:00 PM, PATAR, SAGAR <<a href="mailto:sp345s@att.com" target="_blank">sp345s@att.com</a>> wrote:<u></u><u></u></p>
<div>
<div>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">Thanks..</span><u></u><u></u></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">I was dot using 1.2.0.RELEASE vesion of spring-rabbit and spring-amqp libraries and so was not able
to see those options ..</span><u></u><u></u></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">Now I was able to configure the confirm-callback .. BUT for some reason
</span><u></u><u></u></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">The spring-rabbit (</span><a href="http://docs.spring.io/spring-amqp/api/org/springframework/amqp/rabbit/core/RabbitTemplate.html" target="_blank">http://docs.spring.io/spring-amqp/api/org/springframework/amqp/rabbit/core/RabbitTemplate.html</a><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">)</span><u></u><u></u></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">Supports
</span><code><b><span style="font-size:10.0pt;background:white"><a href="http://docs.spring.io/spring-amqp/api/org/springframework/amqp/rabbit/core/RabbitTemplate.html#send(java.lang.String,%20java.lang.String,%20org.springframework.amqp.core.Message,%20org.springframework.amqp.rabbit.support.CorrelationData)" target="_blank">send</a></span></b></code><code><span style="font-size:10.0pt;background:white">(<a href="http://docs.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang" target="_blank">String</a> exchange,</span></code><span style="font-size:10.0pt;font-family:"Courier New";background:white"> <code><a href="http://docs.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang" target="_blank">String</a> routingKey,</code> <code><a href="http://docs.spring.io/spring-amqp/api/org/springframework/amqp/core/Message.html" title="class in org.springframework.amqp.core" target="_blank">Message</a> message,</code> <code><a href="http://docs.spring.io/spring-amqp/api/org/springframework/amqp/rabbit/support/CorrelationData.html" title="class in org.springframework.amqp.rabbit.support" target="_blank">CorrelationData</a> correlationData)</code></span><span style="font-size:13.5pt;background:white"> </span><u></u><u></u></p>
<p class="MsoNormal"><span style="font-size:13.5pt;background:white"> </span><u></u><u></u></p>
<p class="MsoNormal"><span style="font-size:13.5pt;background:white">But the spring-amqp jar’s doesn’t has this method call ..</span><u></u><u></u></p>
<p class="MsoNormal"><span style="font-size:13.5pt;background:white"> </span><u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
</div>
<div>
<p class="MsoNormal"><<SNIP>> <u></u><u></u></p>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<br>_______________________________________________<br>
rabbitmq-discuss mailing list<br>
<a href="mailto:rabbitmq-discuss@lists.rabbitmq.com">rabbitmq-discuss@lists.rabbitmq.com</a><br>
<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><br>
<br></blockquote></div><br></div>