From: <ad...@jb...> - 2005-05-10 23:29:10
|
I'm obviously looking at the wrong code since it is already setting the correct TCL: JBossCacheService | private Object getUnMarshalledValue(Object mv) | { | if (mv == null) return null; | // Swap in/out the tcl for this web app. Needed only for un marshalling. | ClassLoader prevTCL = Thread.currentThread().getContextClassLoader(); | Thread.currentThread().setContextClassLoader(tcl_); | try | { | return ((MarshalledValue) mv).get(); | } | catch (IOException e) | { | e.printStackTrace(); | return null; | } | catch (ClassNotFoundException e) | { | e.printStackTrace(); | return null; | } | finally | { | Thread.currentThread().setContextClassLoader(prevTCL); | } | } | where tcl_ is coming from the Tomcat config. View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3877266#3877266 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3877266 |