Managing Tomcat Service Using Code

  • 13 years ago

    Hi All,

    I am tyring to create an application that we can use to manage the tomcat service. my purpose is to give a user GUI to stop, start, restart or check the service status.

     

    Can someone help me with the code?

     

    Thanks

  • 13 years ago
    Hi Mahrob,
    This we can achieve when you set the Service component's Interactive property as true



    I am using Microsoft NT Service Control. In one of my service i set the Interactive property as true. Because user can able to Start,Stop, pause the service.

    NTService.Interactive = True

    Hope this may useful for you..

    Good Luck

    Regards
    Hari K......













  • 13 years ago

    thanks for the reply hari...

    I will try to use this...

    i was wondering...if we can get the status of the service with this too??

    Will appreciate your kind response.

     

    Thanks A Lot again.

Post a reply

Enter your message below

Sign in or Join us (it's free).

Contribute

Why not write for us? Or you could submit an event or a user group in your area. Alternatively just tell us what you think!

Our tools

We've got automatic conversion tools to convert C# to VB.NET, VB.NET to C#. Also you can compress javascript and compress css and generate sql connection strings.

“Engineers are all basically high-functioning autistics who have no idea how normal people do stuff.” - Cory Doctorow