|
From: Leif M. <le...@ta...> - 2004-09-16 03:03:00
|
Mitch,
The Wrapper is only capable of launching a single JVM instance at
any one time.
It sounds like rather than running two JVMs, you want to be running two
applications
in the same JVM.
If so, that should by possible by creating a simple bootstrap class
whose main
method simply calls the main methods of the two applications you wish to
start
just like any other static method.
public static void main( String[] args )
{
ClassA.main( args );
ClassB.main( args );
}
Only works if the first main method returns. But you can create a new
thread for each
if necessary.
The WrapperListener integration will only be helpful if you want to run
both apps in the
same JVM. You should be able to do the same thing with the
WrapperSimpleApp or
WrapperStartStopApp methods however.
Cheers,
Leif
Mi...@bo... wrote:
> Is it possible to control 2 separate JVMs using one wrapper and give
> each JVM all the benefits of running in the wrapper? I know this may
> sound silly, but I like the fact that wrapper gives you the ability to
> start/stop applications in a platform independent way, but I would
> like to obscure the fact that 2 separate instances of Java are
> actually running.
>
> Would I be able to use the WrapperListener integration method to
> control this or is wrapper only specific to controlling a single JVM?
>
> Thanks!
>
> Mitch
>
|