You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@activemq.apache.org by pwalter <pa...@nasa.gov> on 2013/02/16 18:42:44 UTC

ActiveMQ NMS - Getting Key/Value from IMapMessage

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???
}
             
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.

Re: ActiveMQ NMS - Getting Key/Value from IMapMessage

Posted by Timothy Bish <ta...@gmail.com>.
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/