hi,

I'm trying to develop a simple wrapper for Jeremie allowing it to be run as
an NT service along with Jonas using JNT.

Using JNT I cannot stop Jeremie by simply killing the jvm as done from the
command line by pressing ctrl-c. Instead JNT calls a method in the wrapper
class (in my case stopJeremie()) that is expected to "gracefully" end
Jeremie.

So far I've implemented the following wrapper class:


import org.objectweb.jeremie.libs.services.registry.JRMIRegistry;

public class JeremieWrapper {

  static Thread jeremieThread;

  public static void main(String[] args) {
    jeremieThread = Thread.currentThread();

    // start Jeremie
    JRMIRegistry.main(args);
  }

  public static void stopJeremie() {
    // deprecated method
    jeremieThread.stop();
  }

}


This is working fine however I note stop() is a deprecated and not
recommended.Oddly enough System.exit(0) did not work as I expected in its
place. Are there any better ways to stop Jeremie?

Thanks for the help,
Calvin.

To unsubscribe, send email to [EMAIL PROTECTED] and
include in the body of the message "unsubscribe jonathan".
For general help, send email to [EMAIL PROTECTED] and
include in the body of the message "help".

Reply via email to