On Mon, Oct 06, 2003 at 09:13:06AM -0400, Guoliang Cao wrote:
> If I embed it in my application (EJB or standalone), does beanshell use its
> own classloader?
> If not, how does it get the classpath? Will it inherit from the
> If I use beanshell to reload some class, will the application's classloader
> reload the modified class?
BeanShell will by default use the application's classloader or, in the case of
a web application, the application server's "context classloader". It will
only create its own classloader if you try to reload classes.
Unfortunately, reloading classes in BeanShell will only affect the version of
the classes used by your BeanShell scripts... it will not change the version
used outside of BeanShell.
I believe there is a new feature in the Java 1.4 VM that allows some degree of
actual class reloading... but I think it's really more for use by debuggers,