• 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
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

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.
 
When I was younger I felt like a man trapped inside a woman’s body. Then I was born. My twin is a tiny ad:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic