<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
<meta name="Generator" content="Microsoft Word 14 (filtered medium)">
<style><!--
/* Font Definitions */
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:Tahoma;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
@font-face
        {font-family:Consolas;
        panose-1:2 11 6 9 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman","serif";}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
code
        {mso-style-priority:99;
        font-family:"Courier New";}
p.MsoAcetate, li.MsoAcetate, div.MsoAcetate
        {mso-style-priority:99;
        mso-style-link:"Balloon Text Char";
        margin:0in;
        margin-bottom:.0001pt;
        font-size:8.0pt;
        font-family:"Tahoma","sans-serif";}
span.BalloonTextChar
        {mso-style-name:"Balloon Text Char";
        mso-style-priority:99;
        mso-style-link:"Balloon Text";
        font-family:"Tahoma","sans-serif";}
span.EmailStyle19
        {mso-style-type:personal-reply;
        font-family:"Calibri","sans-serif";
        color:#1F497D;}
span.apple-converted-space
        {mso-style-name:apple-converted-space;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-family:"Calibri","sans-serif";}
@page WordSection1
        {size:8.5in 11.0in;
        margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang="EN-US" link="blue" vlink="purple">
<div class="WordSection1">
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">Thanks..<o:p></o:p></span></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 ..<o:p></o:p></span></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
<o:p></o:p></span></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">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">)<o:p></o:p></span></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;color:black;background:white"><a href="http://docs.spring.io/spring-amqp/api/org/springframework/amqp/rabbit/core/RabbitTemplate.html#send(java.lang.String, java.lang.String, org.springframework.amqp.core.Message, org.springframework.amqp.rabbit.support.CorrelationData)">send</a></span></b></code><code><span style="font-size:10.0pt;color:black;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">String</a> exchange,</span></code><span class="apple-converted-space"><span style="font-size:10.0pt;font-family:"Courier New";color:black;background:white"> </span></span><code><span style="font-size:10.0pt;color:black;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">String</a> routingKey,</span></code><span class="apple-converted-space"><span style="font-size:10.0pt;font-family:"Courier New";color:black;background:white"> </span></span><code><span style="font-size:10.0pt;color:black;background:white"><a href="http://docs.spring.io/spring-amqp/api/org/springframework/amqp/core/Message.html" title="class in org.springframework.amqp.core">Message</a> message,</span></code><span class="apple-converted-space"><span style="font-size:10.0pt;font-family:"Courier New";color:black;background:white"> </span></span><code><span style="font-size:10.0pt;color:black;background:white"><a href="http://docs.spring.io/spring-amqp/api/org/springframework/amqp/rabbit/support/CorrelationData.html" title="class in org.springframework.amqp.rabbit.support">CorrelationData</a> correlationData)</span></code><span class="apple-converted-space"><span style="font-size:13.5pt;color:black;background:white"> <o:p></o:p></span></span></p>
<p class="MsoNormal"><span class="apple-converted-space"><span style="font-size:13.5pt;color:black;background:white"><o:p> </o:p></span></span></p>
<p class="MsoNormal"><span class="apple-converted-space"><span style="font-size:13.5pt;color:black;background:white">But the spring-amqp jar’s doesn’t has this method call ..<o:p></o:p></span></span></p>
<p class="MsoNormal"><span class="apple-converted-space"><span style="font-size:13.5pt;color:black;background:white"><o:p> </o:p></span></span></p>
<p class="MsoNormal"><span class="apple-converted-space"><span style="font-size:13.5pt;color:black;background:white">Below is my context file configuration .. not sure what’s missing …<o:p></o:p></span></span></p>
<p class="MsoNormal"><span class="apple-converted-space"><span style="font-size:13.5pt;color:black;background:white"><o:p> </o:p></span></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:10.0pt;font-family:Consolas;color:#3F7F7F"><beans</span><span style="font-size:10.0pt;font-family:Consolas;color:black">
</span><span style="font-size:10.0pt;font-family:Consolas;color:#7F007F">xmlns</span><span style="font-size:10.0pt;font-family:Consolas;color:black">=</span><span style="font-size:10.0pt;font-family:Consolas;color:#2A00FF">"http://www.springframework.org/schema/beans"</span><span style="font-size:10.0pt;font-family:Consolas"><o:p></o:p></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:10.0pt;font-family:Consolas;color:black">
</span><span style="font-size:10.0pt;font-family:Consolas;color:#7F007F">xmlns:xsi</span><span style="font-size:10.0pt;font-family:Consolas;color:black">=</span><span style="font-size:10.0pt;font-family:Consolas;color:#2A00FF">"http://www.w3.org/2001/XMLSchema-instance"</span><span style="font-size:10.0pt;font-family:Consolas"><o:p></o:p></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:10.0pt;font-family:Consolas;color:black">
</span><span style="font-size:10.0pt;font-family:Consolas;color:#7F007F">xmlns:rabbit</span><span style="font-size:10.0pt;font-family:Consolas;color:black">=</span><span style="font-size:10.0pt;font-family:Consolas;color:#2A00FF">"http://www.springframework.org/schema/rabbit"</span><span style="font-size:10.0pt;font-family:Consolas"><o:p></o:p></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:10.0pt;font-family:Consolas;color:black">
</span><span style="font-size:10.0pt;font-family:Consolas;color:#7F007F">xsi:schemaLocation</span><span style="font-size:10.0pt;font-family:Consolas;color:black">=</span><span style="font-size:10.0pt;font-family:Consolas;color:#2A00FF">"http://www.springframework.org/schema/beans</span><span style="font-size:10.0pt;font-family:Consolas"><o:p></o:p></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:10.0pt;font-family:Consolas;color:black">
</span><span style="font-size:10.0pt;font-family:Consolas;color:#7F007F">http:</span><span style="font-size:10.0pt;font-family:Consolas;color:#3F7F7F">//www.springframework.org/schema/beans/spring-beans-3.1.xsd http://www.springframework.org/schema/rabbit</span><span style="font-size:10.0pt;font-family:Consolas"><o:p></o:p></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:10.0pt;font-family:Consolas;color:#3F7F7F"> http://www.springframework.org/schema/rabbit/spring-rabbit-1.2.xsd"></span><span style="font-size:10.0pt;font-family:Consolas"><o:p></o:p></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:10.0pt;font-family:Consolas"><o:p> </o:p></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:10.0pt;font-family:Consolas;color:black">
</span><span style="font-size:10.0pt;font-family:Consolas;color:#3F7F7F"><import</span><span style="font-size:10.0pt;font-family:Consolas;color:black">
</span><span style="font-size:10.0pt;font-family:Consolas;color:#7F007F">resource</span><span style="font-size:10.0pt;font-family:Consolas;color:black">=</span><span style="font-size:10.0pt;font-family:Consolas;color:#2A00FF">"classpath*:jmsclient-context.xml"</span><span style="font-size:10.0pt;font-family:Consolas;color:black">
</span><span style="font-size:10.0pt;font-family:Consolas;color:#3F7F7F">/></span><span style="font-size:10.0pt;font-family:Consolas"><o:p></o:p></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:10.0pt;font-family:Consolas"><o:p> </o:p></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:10.0pt;font-family:Consolas;color:black">
</span><span style="font-size:10.0pt;font-family:Consolas;color:#3F7F7F"><rabbit:connection-factory</span><span style="font-size:10.0pt;font-family:Consolas;color:black">
</span><span style="font-size:10.0pt;font-family:Consolas;color:#7F007F">id</span><span style="font-size:10.0pt;font-family:Consolas;color:black">=</span><span style="font-size:10.0pt;font-family:Consolas;color:#2A00FF">"connectionFactory"</span><span style="font-size:10.0pt;font-family:Consolas;color:black">
</span><span style="font-size:10.0pt;font-family:Consolas;color:#7F007F">channel-cache-size</span><span style="font-size:10.0pt;font-family:Consolas;color:black">=</span><span style="font-size:10.0pt;font-family:Consolas;color:#2A00FF">"${channel.cache}"</span><span style="font-size:10.0pt;font-family:Consolas"><o:p></o:p></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:10.0pt;font-family:Consolas;color:black">
</span><span style="font-size:10.0pt;font-family:Consolas;color:#7F007F">publisher-confirms</span><span style="font-size:10.0pt;font-family:Consolas;color:black">=</span><span style="font-size:10.0pt;font-family:Consolas;color:#2A00FF">"true"</span><span style="font-size:10.0pt;font-family:Consolas"><o:p></o:p></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:10.0pt;font-family:Consolas;color:black">
</span><span style="font-size:10.0pt;font-family:Consolas;color:#7F007F">host</span><span style="font-size:10.0pt;font-family:Consolas;color:black">=</span><span style="font-size:10.0pt;font-family:Consolas;color:#2A00FF">"${hostname}"</span><span style="font-size:10.0pt;font-family:Consolas;color:black">
</span><span style="font-size:10.0pt;font-family:Consolas;color:#7F007F">port</span><span style="font-size:10.0pt;font-family:Consolas;color:black">=</span><span style="font-size:10.0pt;font-family:Consolas;color:#2A00FF">"${port}"</span><span style="font-size:10.0pt;font-family:Consolas"><o:p></o:p></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:10.0pt;font-family:Consolas;color:black">
</span><span style="font-size:10.0pt;font-family:Consolas;color:#7F007F">username</span><span style="font-size:10.0pt;font-family:Consolas;color:black">=</span><span style="font-size:10.0pt;font-family:Consolas;color:#2A00FF">"${username}"</span><span style="font-size:10.0pt;font-family:Consolas"><o:p></o:p></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:10.0pt;font-family:Consolas;color:black">
</span><span style="font-size:10.0pt;font-family:Consolas;color:#7F007F">password</span><span style="font-size:10.0pt;font-family:Consolas;color:black">=</span><span style="font-size:10.0pt;font-family:Consolas;color:#2A00FF">"${password}"</span><span style="font-size:10.0pt;font-family:Consolas;color:black">
</span><span style="font-size:10.0pt;font-family:Consolas;color:#3F7F7F">/></span><span style="font-size:10.0pt;font-family:Consolas"><o:p></o:p></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:10.0pt;font-family:Consolas"><o:p> </o:p></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:10.0pt;font-family:Consolas;color:black">
</span><span style="font-size:10.0pt;font-family:Consolas;color:#3F7F7F"><rabbit:admin</span><span style="font-size:10.0pt;font-family:Consolas;color:black">
</span><span style="font-size:10.0pt;font-family:Consolas;color:#7F007F">connection-factory</span><span style="font-size:10.0pt;font-family:Consolas;color:black">=</span><span style="font-size:10.0pt;font-family:Consolas;color:#2A00FF">"connectionFactory"</span><span style="font-size:10.0pt;font-family:Consolas;color:black">
</span><span style="font-size:10.0pt;font-family:Consolas;color:#3F7F7F">/></span><span style="font-size:10.0pt;font-family:Consolas"><o:p></o:p></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:10.0pt;font-family:Consolas"><o:p> </o:p></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:10.0pt;font-family:Consolas;color:black">
</span><span style="font-size:10.0pt;font-family:Consolas;color:#3F7F7F"><rabbit:template</span><span style="font-size:10.0pt;font-family:Consolas;color:black">
</span><span style="font-size:10.0pt;font-family:Consolas;color:#7F007F">id</span><span style="font-size:10.0pt;font-family:Consolas;color:black">=</span><span style="font-size:10.0pt;font-family:Consolas;color:#2A00FF">"amqpTemplate"</span><span style="font-size:10.0pt;font-family:Consolas;color:black">
</span><span style="font-size:10.0pt;font-family:Consolas;color:#7F007F">connection-factory</span><span style="font-size:10.0pt;font-family:Consolas;color:black">=</span><span style="font-size:10.0pt;font-family:Consolas;color:#2A00FF">"connectionFactory"</span><span style="font-size:10.0pt;font-family:Consolas;color:black">
</span><span style="font-size:10.0pt;font-family:Consolas;color:#7F007F">confirm-callback</span><span style="font-size:10.0pt;font-family:Consolas;color:black">=</span><span style="font-size:10.0pt;font-family:Consolas;color:#2A00FF">"dlCallBack"</span><span style="font-size:10.0pt;font-family:Consolas;color:#3F7F7F">/></span><span style="font-size:10.0pt;font-family:Consolas"><o:p></o:p></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:10.0pt;font-family:Consolas;color:black">
</span><span style="font-size:10.0pt;font-family:Consolas"><o:p></o:p></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:10.0pt;font-family:Consolas;color:black">
</span><span style="font-size:10.0pt;font-family:Consolas;color:#3F7F7F"><bean</span><span style="font-size:10.0pt;font-family:Consolas;color:black">
</span><span style="font-size:10.0pt;font-family:Consolas;color:#7F007F">id</span><span style="font-size:10.0pt;font-family:Consolas;color:black">=</span><span style="font-size:10.0pt;font-family:Consolas;color:#2A00FF">"dlCallBack"</span><span style="font-size:10.0pt;font-family:Consolas;color:black">
</span><span style="font-size:10.0pt;font-family:Consolas;color:#7F007F">class</span><span style="font-size:10.0pt;font-family:Consolas;color:black">=</span><span style="font-size:10.0pt;font-family:Consolas;color:#2A00FF">"com.att.dlife.dlcore.mbus.client.DLCallBack"</span><span style="font-size:10.0pt;font-family:Consolas;color:#3F7F7F">></span><span style="font-size:10.0pt;font-family:Consolas"><o:p></o:p></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:10.0pt;font-family:Consolas;color:black">
</span><span style="font-size:10.0pt;font-family:Consolas;color:#3F7F7F"></bean></span><span style="font-size:10.0pt;font-family:Consolas"><o:p></o:p></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:10.0pt;font-family:Consolas;color:black">
</span><span style="font-size:10.0pt;font-family:Consolas"><o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:Consolas;color:#3F7F7F"></beans></span><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D"><o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D"><o:p> </o:p></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""> rabbitmq-discuss-bounces@lists.rabbitmq.com [mailto:rabbitmq-discuss-bounces@lists.rabbitmq.com]
<b>On Behalf Of </b>Gary Russell<br>
<b>Sent:</b> Friday, November 15, 2013 2:33 PM<br>
<b>To:</b> Discussions about RabbitMQ<br>
<b>Subject:</b> Re: [rabbitmq-discuss] no error or exception<o:p></o:p></span></p>
<p class="MsoNormal"><o:p> </o:p></p>
<div>
<p class="MsoNormal">See the various spring-amqp reference documentation sections about how to configure the template (and connection factory) for 'publisher confirms' <a href="http://docs.spring.io/spring-amqp/reference/html/amqp.html#d4e209">http://docs.spring.io/spring-amqp/reference/html/amqp.html#d4e209</a><o:p></o:p></p>
<div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
<div>
<p class="MsoNormal">Essentially, when you send a message, you provide some correlation data; when the ack is received, you get a callback with the result (ack/nack) together with the correlation data (so you know which message the ack is for).<o:p></o:p></p>
</div>
</div>
<div>
<p class="MsoNormal" style="margin-bottom:12.0pt"><o:p> </o:p></p>
<div>
<p class="MsoNormal">On Fri, Nov 15, 2013 at 2:04 PM, PATAR, SAGAR <<a href="mailto:sp345s@att.com" target="_blank">sp345s@att.com</a>> wrote:<o:p></o:p></p>
<p class="MsoNormal">Thanks Simon ..<br>
<br>
I am using spring rabbit template .. not sure how to implement the basic.ack (option 1) with the configuration ..<br>
Can you pl. provide some sample examples I can refer ..<br>
<br>
<br>
-----Original Message-----<br>
From: Simon MacMullen [mailto:<a href="mailto:simon@rabbitmq.com">simon@rabbitmq.com</a>]<br>
Sent: Friday, November 15, 2013 8:37 AM<br>
To: Discussions about RabbitMQ<br>
Cc: PATAR, SAGAR<br>
Subject: Re: [rabbitmq-discuss] no error or exception<br>
<br>
On 15/11/2013 13:09, PATAR, SAGAR wrote:<br>
> But when we try to post a message it doesn't throw any exception<br>
<br>
That's because publishing is asynchronous. The channel will have closed<br>
due to the permission error but if you just publish and do nothing else<br>
your app won't notice.<br>
<br>
Ways you could notice:<br>
<br>
* Publish in confirm mode and await a basic.ack<br>
* Publish in mandatory mode and await a basic.return<br>
* Publish in a transaction<br>
<br>
These all have performance costs (in approximately increasing order).<br>
<br>
Cheers, Simon<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><o:p></o:p></p>
</div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
</div>
</body>
</html>