I'm researching writing a daemon in Java. Surprisingly, there seems to be very little documentation around the net for doing this. After searching for a while, and failing to find anything, I remembered that tomcat behaves much like a daemon and probalby has implemented this functionality. Much as I suspected, they've implemented a set of classes in the org.apache.service package which depends on some native code to handle the dirty work.
I was hoping that someone here has actual experience (Stephan, are you there?) using this code, and knows if it works ok. I'll probably end up pouring over the source and joining the tomcat mailing list over this issue, but I was hoping someone could tell me right off the bat if it's a good starting point. Thanks