Return-Path: X-Original-To: apmail-commons-user-archive@www.apache.org Delivered-To: apmail-commons-user-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 94845D8D3 for ; Tue, 5 Mar 2013 16:36:37 +0000 (UTC) Received: (qmail 30830 invoked by uid 500); 5 Mar 2013 16:36:36 -0000 Delivered-To: apmail-commons-user-archive@commons.apache.org Received: (qmail 30440 invoked by uid 500); 5 Mar 2013 16:36:30 -0000 Mailing-List: contact user-help@commons.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "Commons Users List" Delivered-To: mailing list user@commons.apache.org Received: (qmail 30397 invoked by uid 99); 5 Mar 2013 16:36:29 -0000 Received: from minotaur.apache.org (HELO minotaur.apache.org) (140.211.11.9) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 05 Mar 2013 16:36:29 +0000 Received: from localhost (HELO fc18x64v0.jboss.hr) (127.0.0.1) (smtp-auth username mturk, mechanism plain) by minotaur.apache.org (qpsmtpd/0.29) with ESMTP; Tue, 05 Mar 2013 16:36:29 +0000 Message-ID: <51361F0A.40702@apache.org> Date: Tue, 05 Mar 2013 17:36:26 +0100 From: Mladen Turk User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130219 Thunderbird/17.0.3 MIME-Version: 1.0 To: user@commons.apache.org Subject: Re: [daemon] jsvc won't recognize my entry point class References: <6935DB1C-22BD-4C4B-B602-60DA591D0D74@bbn.com> <15018474-C76D-42A3-9C25-05F5D73853A0@bbn.com> In-Reply-To: <15018474-C76D-42A3-9C25-05F5D73853A0@bbn.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit On 03/04/2013 06:00 PM, Ian Emmons wrote: > Update: I've done some digging in the jsvc source code, and it appears to be at odds with the documentation [1]. The docs indicate that I can (a) write a Java class that implements the Daemon interface, or (b) define a class that implements four specific methods (init, start, stop, destroy, with specific signatures). > > If I choose (a), the docs say I needs to put the commons-daemon jar on my classpath (an obvious requirement), but if I choose (b), then the jar is not needed. However, the jsvc source code seems to load the DaemonLoader class in both cases, and so therefore the jar is always required. > > Can a someone familiar with the jsvc internals confirm this analysis? If I am correct, then I will enter a JIRA issue against the docs. > Yes, commons-daemon is always required. If you do not specify Daemon interface, it's still created internally and calls your methods. I don't see anything that says that its not required. It's your presumption, so perhaps a statement that its always needed would be more clear. You are welcome to write something and if it make sense, I'll commit it. Regards -- ^TM --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscribe@commons.apache.org For additional commands, e-mail: user-help@commons.apache.org