activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "James Strachan" <james.strac...@gmail.com>
Subject Re: Retrieving columns types with MapMessage
Date Tue, 02 Dec 2008 09:45:43 GMT
2008/12/2 Ben Amitai <SabaUdi@gmail.com>:
>
> Hi,
> I read a MapMessage object using Session.receive();
> Now, I need to print the values of changed columns, but regarding to the
> column's type.
> for example, a date type should be read as long when name should be read as
> string.
>
> I have no information about the column's name..
>
> Is what I want even possible?

You can find the key names via
http://java.sun.com/j2ee/1.4/docs/api/javax/jms/MapMessage.html#getMapNames()

then ask for the value via
http://java.sun.com/j2ee/1.4/docs/api/javax/jms/MapMessage.html#getObject(java.lang.String)

-- 
James
-------
http://macstrac.blogspot.com/

Open Source Integration
http://fusesource.com/

Mime
View raw message