[jboss-user] [JBoss jBPM] - different ProcessClassLoader instance for each action delega
gogoasa
do-not-reply at jboss.com
Thu Aug 16 06:50:15 EDT 2007
Hello,
I noticed that each ActionHandler is loaded by a different instance of ProcessClassLoader. Incidentally that means that static variables cannot be used, as static variables are classloader-scoped.
The code responsible for this is in ClassLoaderUtil.java
public static ClassLoader getProcessClassLoader(ProcessDefinition processDefinition) {
| return new ProcessClassLoader(ClassLoaderUtil.class.getClassLoader(), processDefinition);
| }
A new instance everytime, instead of a singleton...
Is this behaviour by design ?
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4074787#4074787
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4074787
More information about the jboss-user
mailing list