[jboss-user] [JBoss Messaging] - Re: ClassLoader issue with user classes and JBM 1.0.1SP4

vishal423 do-not-reply at jboss.com
Thu Apr 3 10:12:11 EDT 2008


Hi All, 

Inserting this statement before retrieving object from ObjectMessageProxy inside onMessage method in listener, class loaders exception got resolved:

Thread.currentThread().setContextClassLoader(<class-name>.class.getClassLoader());

Thanks & Regards,
Vishal

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4141362#4141362

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4141362



More information about the jboss-user mailing list