| Author |
JMSException Error deserializing object
|
Priyaa V Kumar
Ranch Hand
Joined: Aug 12, 2004
Posts: 32
|
|
Hi, I created a class called Result that implements the Serializable interface. I send this serializable object to a Topic using Log4J's JMSAppender. in my client prg that uses log4j to send message to a topic, I write logger.info(result); When I deploy the message driven bean, i include the Result class in the jar. On the MDB, I try to get the Result object like this if (message instanceof ObjectMessage) { ObjectMessage m = (ObjectMessage) message; Result rslt = (Result) m.getObject(); } I get a JMSException " Error deserializing object" ... Why is the Result class not available to the bean to deserialise? I unjared the deployed mdb and found the Result.class
|
 |
 |
|
|
subject: JMSException Error deserializing object
|
|
|