Hello,
I want to develop message layer for application to
exchange text and serialized object using JMS. The application is working well when TextMessage is passed but throw exception when object message is passed.
My code is :
try {
correlationID = mess.getJMSCorrelationID();
System.out.println(LID +" correlationID = "+correlationID);
if(mess instanceof ObjectMessage) {
oMessages = (ObjectMessage) mess;
System.out.println(LID + "mess instanceof ObjectMessage");
}
r16 = (R16) oMessages.getObject();//fail here
} catch(JMSException jmse){
jmse.printStackTrace();
Logger.debug( LID , jmse );
}
And the exception is :
javax.jms.MessageFormatException: Error in Deserializing Object Message.Class not found
Please share your experience with me
Thanks in Advance
[ February 11, 2004: Message edited by: Syed Saifuddin ]