David Lindelöf wrote:
Hi Richard,
On Wed, 2007-08-15 at 10:22 -0400, Richard S. Hall wrote:
The class loader of the Runnable implementation class that you register
is the one that will be used to load any classes that your Runnable
implementation uses. So, assuming that your Runnable implementation
class is from your bundle, then it will be loaded from your bundle class
loader, which has access to everything on your bundle class path...
That's also what I would assume, but Felix throws a NoClassDefFoundError
when running the shutdown hooks. Explicitly exporting the package
containing the offending class solves the problem. The package is part
of an embedded jarfile that's declared on the bundle's classpath.
Any ideas?
Actually, thinking about it a little more, this would be problematic
because you probably cannot continue to load classes from a bundle that
is no longer in a running framework. In other words, the bundle class
loader stops working once the framework shuts down.
-> richard
Kind regards,
David
-> richard
David Lindelöf wrote:
Dear all,
When a bundle registers a Runnable as a shutdown hook, must all classes
used when running that thread have been exported by the bundle? In other
words, which classes are on the "classpath" of the thread that runs that
Runnable?
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]