Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Getting Object From JMS Queue  RSS feed

 
Dave Hewy
Ranch Hand
Posts: 93
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I want to get a message from a JMS queue that has an embedded object.

The program I'm writing is a utility, therefore I do no want to have the embedded object class in the utility, instead I would like to invoke methods on it using reflection.

When I try this, I get a JMSException saying that there was an error deserializing the object, and the cause is ClassNotFoundException.

If I put the embedded object into the utility so it's in the classpath, it works fine.

Is there as way to *NOT* have the class defined in the utility ?

Thanks for any help.

Regards

Dave
 
Georgy Bolyuba
Ranch Hand
Posts: 162
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
As far as I understand you can not deserialize an object if you do not have its class on your classpath. This sounds reasonable for me.
 
Dave Hewy
Ranch Hand
Posts: 93
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Ok, thanks - I thought that would be the case, just wondered if anyone had any ideas !

Dave
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!