[jboss-dev-forums] [Design of POJO Server] - Re: Problem with javassist + RepositoryClassLoader
scott.stark@jboss.org
do-not-reply at jboss.com
Wed Nov 15 23:53:35 EST 2006
This is why there is a dynamic url notion.
| /** HashSet<UCL> of class loaders in the repository that have a dynamic
| * URL associated with them. Such a class loader is added to every package
| * class loader set in #getPackageClassLoaders(String).
| */
| private HashSet dynamicClassLoaders = new HashSet();
|
|
A dynamic URL is one that has a dynamic=true query parameter added to the URL. The aop class generation layer uses this to treat the server/tmp/aopdynclasses dir as containing such classes:
| URL tmpURL = tempdir.toURL();
| URL tmpCP = new URL(tmpURL, "?dynamic=true");
|
Otherwise, putting the classes in a directory associated with the war class loader would also work since it does not use the ucl by default.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3986387#3986387
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3986387
More information about the jboss-dev-forums
mailing list