Bill Shannon wrote:
> I changed asadmin recently to use HK2 to allow the set of local commands
> to be extensible. That solved only part of the problem. Since asadmin
> doesn't use OSGi, there's no convenient, automatic way to install a new
> jar file that includes support for a new local command and have it be
> seen by asadmin. Essentially there needs to be a way to add a new jar
> file to asadmin's CLASSPATH.
>
> Here's the ways I've thought of to solve this problem:
>
> 1. Use OSGi. I think this is excessive but I list it for completeness.
We should explore this option. I have recently changed verifier, which
is a standalone tool like asadmin, to use OSGi. So, when people type
verifier, it starts an OSGi framework and has access to all OSGi bundles
available in modules directory. I know I have some work to do in
verifier to make it robust, but it actually worked pretty well when I
did it. I don't have to worry about CLASSPATH in verifier script.
Thanks,
Sahoo