RSS Feed for This PostCurrent Article

Open Source Software to start up Java as Windows Service/Unix Daemon

Nowadays Java is used more and more for server application development, and also backend processes for ETL purposes. For this, there is a need to run the Java program as Windows Service in Windows platform, or as a Unix daemon process. The tools described can be used both for Windows and Unix/Linux platforms.

Java Service Wrapper by Tanuki Software

Java Service Wrapper makes it possible to install a Java Application as a Windows NT Service. The scripts provided with the Wrapper also make it very easy to install those same Java Applications as daemon processes on UNIX systems.

The Wrapper correctly handles user log outs under Windows, service dependencies, and the ability to run services which interact with the desktop.

The following platforms are supported.

  • aix – AIX
  • freebsd – FreeBSD
  • hpux, hpux64 – HP-UX, 32 and 64-bit versions.
  • irix – SGI Irix
  • linux – Linux kernels; 2.2.x 2.4.x, 2.6.x. Known to work with Debian and Red Hat, but should work with any distribution. Currently supported on both 32 and 64-bit x86, and 64-bit ppc systems.
  • macosx – Macintosh OS X.
  • osf1 – DEC OSF1.
  • solaris – Sun OS, Solaris 7, 8, 9 and 10. Currently supported on both 32 and 64-bit sparc, and x86 systems.
  • win32 – Windows NT, 2000, XP, and 2003.

Apache Commons Daemon

Commons Daemon initially comes from Tomcat project. It is made of 2 parts. One written in C that makes the interface to the operating system and the other in Java that provides the Daemon API.

win32 and the UNIX like platforms are supported. For win32 platfroms use procrun. For UNIX like platforms use jsvc.

The binaries are provided for

  • freebsd
  • linux
  • macos
  • solaris


Trackback URL


RSS Feed for This Post11 Comment(s)

  1. Adam Sherman | Oct 1, 2007 | Reply

    Have you used either one of these frameworks yet? I’m looking to implement this functionality and am having trouble understanding the difference.

    A.

  2. thoughtworks | Oct 1, 2007 | Reply

    I used Java Service wrapper for several projects that I did on Unix platform, and I am quite happy with it.

    Also, I noticed that Java Service Wrapper is used by several famous commerical software (I will not mention the name) but I think it is worth you look into both and try to use them in your project.

  3. itsadok | Oct 8, 2007 | Reply

    I tried these solutions for my Linux servers, and never managed to get it to work quite right. (My fault, of course).
    I ended up using daemontools from http://thedjbway.org/ – this way it doesn’t matter whether it’s a Java process or a shell script, anything can be a daemon.

  4. Debasish Layek | Dec 14, 2007 | Reply

    cool

  5. dipak | Apr 9, 2008 | Reply

    whenever we start a service & log on a user on it.then after logging of the service also gets stopped?Why this happened?

  6. Towing Software Protow by Marr Software | Jan 17, 2016 | Reply

    Equipment Moving, Flat Deck Towing – Hauling 24-7
    Caan Trwnsport Just ablut all Size Mobile Homes Park Model Homes, BC Albertaa – Mobile Home Towing,Travel Trailer
    Transport. This phenomenon sparked the emergence of voucher aggregatiing sites
    which seems to have elped retailers a good deal.
    There three areas oof concern for boaters towing a trailer; meetingg legal
    requirements, considerations made for safety, and the proper maintenance of trailer and tow vehicle.

  7. bán foam | Jan 29, 2016 | Reply

    Admiring the time and energy you put into your site and in depth information you offer.
    It’s good to come across a blog every once
    in a while that isn’t the same outdated rehashed information. Great read!
    I’ve saved your site and I’m adding your RSS feeds to my Google account.

  8. Marylou | Jan 30, 2016 | Reply

    Hi friends, how is all, and what you would like
    to say on the topic of this paragraph, in my view its
    truly remarkable in support of me.

  9. youtube cheats 2014 | Feb 2, 2016 | Reply

    Adrian and Michael Pastore, each 44, of Westfield,
    N. L., have covered this ground using their 10-year-old son Gabriel.

  10. old telugu songs | Feb 3, 2016 | Reply

    whoah this weblog is magnificent i love studying your articles.
    Keep up the great work! You already know, a lot of persons are searching around for this info, you can aid them
    greatly.

  11. nowhere | Feb 6, 2016 | Reply

    ESI International provides Project Management Training Shanghai & Beijing.

    Curbing pollution and emission is as much as desired outcome of operations as
    it is a requirement for better air management and control.
    So it is urgently necessary to signpost the whole human resources globally for environmental education and training that
    they are well-equipped with latest information, knowledge, timely technology and know-how to preserve biodiversity as a whole.

1 Trackback(s)

  1. From 小叮当 » Blog Archive » 开源软件启用Java作为Windows Service/Unix Daemon | Sep 21, 2007

RSS Feed for This PostPost a Comment

*