[rabbitmq-discuss] How to get custom header

Michael Klishin michael.s.klishin at gmail.com
Wed Jan 29 16:13:24 GMT 2014


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

> Actually, I have to cast it to a string and it compile successfully.
>  Thanks MK
>
> String strFirstName = properties.getHeaders().get("FirstName").toString();
>

Right. Headers is a Map<String, Object>.


-- 
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/d32442d4/attachment.html>


More information about the rabbitmq-discuss mailing list