How to start a service?

Asked

Viewed 89 times

0

The function below starts through a file . jar a Webservice.

private static void StartService()
{
    try
    {
        var FileStart = new FileInfo(Path.Combine(Path.GetDirectoryName(Assembly.GetExecutingAssembly().Location), @"WSOPaf.jar"));
        Process.Start(FileStart.ToString());
    }
}

It is necessary to put the extension of the file ". jar" or just the name?

That’s the best way to open the service?

  • Can you "run" this jar manually? How do you expect this execution to be done?

  • This service starts automatically in windowns, but if it does not start, I need to start with another program I created, in this program this function is responsible.

No answers

Browser other questions tagged

You are not signed in. Login or sign up in order to post.