This content has been marked as final.
Show 4 replies
-
1. Re: MapMessage.setObject() gives MessageFormatException
cchee Mar 1, 2002 12:53 PM (in response to cchee)Oops, typo, it should be class AMessageConverter instead of class A in the code sample.
-
2. Re: MapMessage.setObject() gives MessageFormatException
cchee Mar 1, 2002 12:55 PM (in response to cchee)For clarity... ;P
class AMessageConverter ... {
public static MapMessage translate( Session session, A a ) {
B b = a.getB();
MapMessage bmsg = BMessageConverter.translate( session, b );
MapMessage msg = session.createMapMessage();
:
:
:
msg.setObject( "B", bmsg );
:
:
:
return msg;
}
} -
3. Re: MapMessage.setObject() gives MessageFormatException
cchee Mar 1, 2002 1:39 PM (in response to cchee)Never mind. Forgot to include the third nested class in the jar file. Problem solved after include the missing class in the jar file.
-
4. Re: MapMessage.setObject() gives MessageFormatException
cchee Mar 1, 2002 5:34 PM (in response to cchee)Download the source code and check it out... The problem can't be solved, because setObject in SpyMapMessage only handles basic data type wrapper classes in Java. It would be nice if it can do evelope of message.