Sorry for my mistake, jetty is at www.mortbay.com

-----Original Message-----
From: Halas, Miroslav [mailto:[EMAIL PROTECTED]] 
Sent: Monday, August 13, 2001 10:11 AM
To: '[EMAIL PROTECTED]'; [EMAIL PROTECTED]
Subject: RE: Re-2: Start/Stop Jonas running as NT Service.

Markus. the code is generic (run Java program as NT service) and available
from many sources. Look for example on Jetty implementation at
www.objectweb.org, they do the same...

Miro

-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Monday, August 13, 2001 2:35 AM
To: [EMAIL PROTECTED]
Subject: Re-2: Start/Stop Jonas running as NT Service.


It would be very kind if that people that made JOnAS running as a service
unter WindowsNT would post their source code into the mailing list. For
JOnAS is open source it would be just fair to contribute that code.

Markus

-------- Original Message --------
Subject: Re: Start/Stop Jonas running as NT Service. (02-Aug-2001 13:34)
From:    [EMAIL PROTECTED]
To:      [EMAIL PROTECTED]

> 
> I'm not so familiar with javaserv but if you have successfully installed
> Jonas as an NT service start/stop it with the "net start
> jonas_service_name" / "net stop jonas_service_name" commands or set the
> service to start automatically within services within control panel.
> 
> Somewhere you will have to instruct javaserv to possibly start a naming
> service and call Jonas's main method. If it uses a java wrapper for this
> purpose it would look something like:
> 
> import org.objectweb.jonas.server.Server;
> import org.objectweb.jonas.adm.*;
> // jeremie packages
> import org.objectweb.jeremie.libs.services.registry.JRMIRegistry;
> // rmi packages
> //  import java.rmi.registry.*;
> //  import java.rmi.RemoteException;
> 
> public class SomeJavaServWrapper {
>   public static void main(String[] args) {
> 
>     // start Jeremie
>     JRMIRegistry.main(args);
> 
> //   OR start RMI registry
> //      try {
> //        LocateRegistry.createRegistry(Registry.REGISTRY_PORT);
> //      } catch(RemoteException e) {
> //        System.err.println("Unable to create RMI Registry");
> //        System.exit(-1);
> //      }
> 
>     // start JOnAS
>     Server.main(args);
> 
>     // main thread ends killing the naming service
> }
> 
> 
> Somewhere you will also want to respond to nt SERVICE_STOPPED events
> (and possibly others), here you want to do something like:
> 
>    final static String JONAS_NAME = "jonas";  // default value
>    String admName = JONAS_NAME + Adm.ADMNAME_SUFFIX;
>    try {
>      InitialContext initialContext = new InitialContext();
>      AdmInterface admI = (AdmInterface) initialContext.lookup(admName);
>      admI.stopServer();
>    } catch (Exception e) {
>         ...
>    }
> 
> 
> ----- Original Message -----
> From: "Meghani, Murad" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Thursday, August 02, 2001 7:34 AM
> Subject: Start/Stop Jonas running as NT Service.
> 
> 
> > Hello:
> > I am trying to run Jonas as a NT Service and am using the Java service
> > installer by  <http://www.kcmultimedia.com/javaserv/> .  How do I
> start/stop
> > the EJB server?
> > Thanks in advance for any help in this matter.
> >
> > Murad Meghani
> > Consultant
> > Compuware Corporation
> > 15305 Dallas Parkway, Suite 900
> > Addison, Texas, 75001
> > 972-960-0960 x1379
> > www.compuware.com
> >
> > ----
> > To unsubscribe, send email to [EMAIL PROTECTED] and
> > include in the body of the message "unsubscribe jonas-users".
> > For general help, send email to [EMAIL PROTECTED] and
> > include in the body of the message "help".
> >
> 
> 
> ----
> To unsubscribe, send email to [EMAIL PROTECTED] and
> include in the body of the message "unsubscribe jonas-users".
> For general help, send email to [EMAIL PROTECTED] and
> include in the body of the message "help".
> 
> To:     [EMAIL PROTECTED]
> Cc: [EMAIL PROTECTED]


To: [EMAIL PROTECTED]
    [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]

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

Reply via email to