IntroductionPurpose
In order to reduce the number of classloading projects,
The main problems to solve in application launching include
locating all of application's JARs, configuring the initial
classloaders, and invoking the
The launcher facilities of
$JAVA_HOME/bin/java \ -classpath $APP_HOME/lib/classworlds-1.0.jar \ -Dclassworlds.conf=$APP_HOME/etc/classworlds.conf \ -Dapp.home=$APP_HOME \ org.codehaus.classworlds.Launcher \ $* ConfigurationEntry Definition
The entry-point class and realm must be specified
using the
main is com.werken.projectz.Server from app Realm Definitions
At least one
[realm.one] ... ... [realm.two] ... ... [realm.three] ... ...
Within a realm definition, two directives are available:
The
[app] load ${app.home}/lib/myapp.jar load ${app.home}/lib/xerces.jar load ${tools.jar}
The
[app] ... [subcomponent] import com.werken.projectz.Foo from [app] ... Entry point methods
For those applications that do require the
public class MyApp { public static void main(String[] args, ClassWorld world) { ... } } |