• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Paul Clapham
  • Tim Cooke
  • Jeanne Boyarsky
  • Liutauras Vilda
Sheriffs:
  • Frank Carver
  • Henry Wong
  • Ron McLeod
Saloon Keepers:
  • Tim Moores
  • Frits Walraven
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
Bartenders:
  • Al Hobbs
  • Piet Souris
  • Himai Minh

Creating a windows service application

 
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi guys,

I am trying to create an windows application, and then i have to run it as a windows service. I googled it, using winrun4j we can achieve it. But the documentation is very less to understand to create.

Thanks in advance

Regards,
Sanath
 
Sheriff
Posts: 3837
66
Netbeans IDE Oracle Firefox Browser
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I had a brief look at the winrun4j documentation and wouldn't say it is inadequately documented. You need to create a class implementing the Service interface, and create an ini file that will contain the name of this class in the service.class key (among other things). There is a small example of a simple service (ini file plus the source code).

What do you know about Windows Services themselves (ie. before getting Java into the picture)? I believe that if you read some info on Windows Services, the rest should be much more obvious to you.

You should also know that processes running as Windows services operate in a distinct environment, with some specific rules governing access rights (among others). If your application needs to access resources on the network (such as a shared folder), you may need to study a lot to get it working.
 
I AM MIGHTY! Especially when I hold this tiny ad:
the value of filler advertising in 2021
https://coderanch.com/t/730886/filler-advertising
reply
    Bookmark Topic Watch Topic
  • New Topic