activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Timothy Bish <tabish...@gmail.com>
Subject Re: ActiveMQ NMS - Getting Key/Value from IMapMessage
Date Sat, 16 Feb 2013 17:54:41 GMT
See below:

On 02/16/2013 12:42 PM, pwalter wrote:
> I have an IMapMessage and want to retrieve all message body key/value pairs.
> I don't know the types of data.
>
> IMapMessage message = ......
> foreach (string key in message.Body.Keys)
> {
>      ??? HOW TO GE THE VALUE -- NOT KNOWING THE TYPE OF DATA???
          object something = message.Body[key];
> }
>               
> Thanks
>
>
>
>
> --
> View this message in context: http://activemq.2283324.n4.nabble.com/ActiveMQ-NMS-Getting-Key-Value-from-IMapMessage-tp4663582.html
> Sent from the ActiveMQ - User mailing list archive at Nabble.com.
>


-- 
Tim Bish
Sr Software Engineer | RedHat Inc.
tim.bish@redhat.com | www.fusesource.com | www.redhat.com
skype: tabish121 | twitter: @tabish121
blog: http://timbish.blogspot.com/


Mime
View raw message