[rabbitmq-discuss] How to get custom header

Michael Klishin michael.s.klishin at gmail.com
Wed Jan 29 15:54:14 GMT 2014


2014-01-29 cw storm <cwstorm at gmail.com>

> java.util.Map<String,Object> headers = new
> java.util.HashMap<String,Object>();
> headers.put("FirstName", strFirstName);
>
> So, when I consume the message, how can I get "Firstname" value?
>

properties.getHeaders().get("FirstName"");
-- 
MK

http://github.com/michaelklishin
http://twitter.com/michaelklishin
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rabbitmq.com/pipermail/rabbitmq-discuss/attachments/20140129/30e3e761/attachment.html>


More information about the rabbitmq-discuss mailing list