This week's book giveaway is in the Design forum.
We're giving away four copies of Design for the Mind and have Victor S. Yocco on-line!
See this thread for details.
Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

JMSException Error deserializing object

 
Priyaa V Kumar
Ranch Hand
Posts: 32
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic