This content has been marked as final.
Show 2 replies
-
1. Re: Dynamic Class loading
genman Jul 13, 2007 3:18 AM (in response to brilleaben)I don't know if I can be a help...but I have some ideas.
There is a "classpath extension service" which can add additional .jar files and ... perhaps class directories to an existing loader repository.
In the JMX console, every JBoss classloader has an MBean name, so for your .ear or scoped .sar or whatever, you can adjust the classpath using this service.
http://fisheye.jboss.com/browse/JBoss/jboss-system/src/main/org/jboss/deployment/ClasspathExtension.java -
2. Re: Dynamic Class loading
brilleaben Jul 13, 2007 3:26 AM (in response to brilleaben)Hi - thanks for your answer. I did somewhat solve the problem myself. I used the URLClassLoader to load the class. I am not sure it is the best way to do it, but it works for me :-)