<div dir="ltr">Actually, I have to cast it to a string and it compile successfully. Thanks MK<div><br></div><div><span style="font-family:arial,sans-serif;font-size:13px">String strFirstName = properties.getHeaders().get("</span><span style="font-family:arial,sans-serif;font-size:13px">FirstName").toString();</span><br>
</div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Wed, Jan 29, 2014 at 11:08 AM, cw storm <span dir="ltr"><<a href="mailto:cwstorm@gmail.com" target="_blank">cwstorm@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Thanks MK. I'll give that a try. So, can I map it to a string like this:<div><br></div><div>String strFirstName = properties.getHeaders().get("FirstName");</div>
</div><div class="gmail_extra">
<br><br><div class="gmail_quote"><div><div class="h5">On Wed, Jan 29, 2014 at 10:54 AM, Michael Klishin <span dir="ltr"><<a href="mailto:michael.s.klishin@gmail.com" target="_blank">michael.s.klishin@gmail.com</a>></span> wrote:<br>
</div></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div class="h5">
<div dir="ltr"><div class="gmail_extra"><br><div class="gmail_quote">2014-01-29 cw storm <span dir="ltr"><<a href="mailto:cwstorm@gmail.com" target="_blank">cwstorm@gmail.com</a>></span><div><br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">
<div><div>java.util.Map<String,Object> headers = new java.util.HashMap<String,Object>();</div>
<div>headers.put("FirstName", strFirstName);</div></div><div><br></div><div>So, when I consume the message, how can I get "Firstname" value?</div></blockquote></div></div><br>properties.getHeaders().get(<span style="font-family:arial,sans-serif;font-size:13px">"FirstName"</span>");</div>
<span><font color="#888888">
<div class="gmail_extra">-- <br>MK<br><br><a href="http://github.com/michaelklishin" target="_blank">http://github.com/michaelklishin</a><br><a href="http://twitter.com/michaelklishin" target="_blank">http://twitter.com/michaelklishin</a><br>
</div></font></span></div>
<br></div></div>_______________________________________________<br>
rabbitmq-discuss mailing list<br>
<a href="mailto:rabbitmq-discuss@lists.rabbitmq.com" target="_blank">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>
</blockquote></div><br></div>