|
From: Leif M. <le...@ta...> - 2003-02-07 16:45:49
|
Mark Striebeck wrote: > what is the difference between the WrapperSimpleApp and the > WrapperStartStopApp class? I am using the SimpleApp and everything > seems to work. I tried the WrapperStartStop class, but couldn't really > figure out what the settings for the wrapper.app.parameter.* are > (Andrew, I checked your .conf file, but I still don't know what the > settings mean) The WrapperSimpleApp is used to launch any Java application via its main method. This is the best choice for wrapping most applications. The WrapperStartStopApp is used to control applications which use one java app to launch an application and then a second one to shut it down cleanly. Often, the first app will open up a server socket and listening for a connection. A shutdown app then connects to the application using a socket and tells it to shutdown. When using the Wrapper, the entire lifecycle is controlled by the Wrapper. The WrapperStartStopApp requires that two classes and their parameters to be specified. One for the main method of the application. And the second for the main method of the shutdown class. When the Wrapper launches a JVM, it calls the first class's main method to launch the application. Then when it is time to shutdown the application, it calls the second classes main method. They are both explained along with examples on: http://wrapper.sourceforge.net/doc/english/api-overview.html Let me know if there are any areas of the description which could be cleared up. I hope that helps. Cheers, Leif |