users@glassfish.java.net

ObjectMessageImpl .....

From: <glassfish_at_javadesktop.org>
Date: Mon, 23 Aug 2010 11:56:36 PDT

Hi,

I'm subscribing to some topics with my standalone app. My onMessage method is called as expected, but the object I get is of type ObjectMessageImpl. How do I:

1) Convert the body of the message for printing to the console (for debug)
2) Convert for use by Jaxb

I'm looking for some sample code.

I think I can figure out how to use JAXB, I just want to be sure the ObjectMessageImpl object is converted (sact?) correctly for JAXB.

TIA
[Message sent by forum member 'whatsamatteru']

http://forums.java.net/jive/thread.jspa?messageID=480834