[jboss-user] [EJB 3.0] - ClassLoader not set properly when timer callback method is c
pgervais
do-not-reply at jboss.com
Tue May 1 15:12:48 EDT 2007
I used the @Timeout annotation on a method of an MDB, in this method a read messages from JMS.
When trying to get content of an ObjectMessage I get a ClassNotFoundException, the class is in the same EAR as the MDB, it should be found.
To fix this, I set the context class loader to my MDB's class loader using this: Thread.currentThread().setContextClassLoader(getClass().getClassLoader())
Is it normal that the context classloader is not set to the class loader of the class on which the timer callback is called?
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4042208#4042208
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4042208
More information about the jboss-user
mailing list