Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 18DC1200B31 for ; Tue, 24 May 2016 21:34:39 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 179AE160A35; Tue, 24 May 2016 19:34:39 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 372F216098E for ; Tue, 24 May 2016 21:34:38 +0200 (CEST) Received: (qmail 28254 invoked by uid 500); 24 May 2016 19:34:37 -0000 Mailing-List: contact dev-help@ofbiz.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@ofbiz.apache.org Delivered-To: mailing list dev@ofbiz.apache.org Received: (qmail 28243 invoked by uid 99); 24 May 2016 19:34:37 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd3-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 24 May 2016 19:34:37 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd3-us-west.apache.org (ASF Mail Server at spamd3-us-west.apache.org) with ESMTP id AB7E81805F7 for ; Tue, 24 May 2016 19:34:36 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd3-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 0.652 X-Spam-Level: X-Spam-Status: No, score=0.652 tagged_above=-999 required=6.31 tests=[SPF_NEUTRAL=0.652] autolearn=disabled Received: from mx2-lw-eu.apache.org ([10.40.0.8]) by localhost (spamd3-us-west.apache.org [10.40.0.10]) (amavisd-new, port 10024) with ESMTP id WH1qJpWm-IQu for ; Tue, 24 May 2016 19:34:34 +0000 (UTC) Received: from mx1.openfarm.fr (mx1.openfarm.fr [213.215.11.10]) by mx2-lw-eu.apache.org (ASF Mail Server at mx2-lw-eu.apache.org) with ESMTP id 47FE95F2C3 for ; Tue, 24 May 2016 19:34:34 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by mx1.openfarm.fr (Postfix) with ESMTP id DC20621492 for ; Tue, 24 May 2016 21:34:27 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at OPFHBG003.hosting.openfarm.fr Received: from mx1.openfarm.fr ([127.0.0.1]) by localhost (OPFHBG003.hosting.openfarm.fr [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id VI5NQ47k-PWy for ; Tue, 24 May 2016 21:34:27 +0200 (CEST) Received: from [192.168.0.10] (lila.librenberry.net [78.208.235.31]) (Authenticated sender: nicolas.malin@nereide.fr) by mx1.openfarm.fr (Postfix) with ESMTPSA id 06EC82148E for ; Tue, 24 May 2016 21:34:26 +0200 (CEST) Subject: Re: Deleting CommonsDaemonStart.java To: dev@ofbiz.apache.org References: <597d316d-937f-9de8-da02-29b343d89dcb@les7arts.com> <8957579d-ca76-6c32-90bc-918189ab5d4a@les7arts.com> <001701d1b3ff$cf99a380$6eccea80$@gmail.com> From: Nicolas Malin Organization: =?UTF-8?B?TsOpcsOpaWRl?= Message-ID: <5744ACC2.3000908@nereide.fr> Date: Tue, 24 May 2016 21:34:26 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.7.2 MIME-Version: 1.0 In-Reply-To: <001701d1b3ff$cf99a380$6eccea80$@gmail.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit archived-at: Tue, 24 May 2016 19:34:39 -0000 Hi Taher, I tried to understand and comment your patch, but my apologies it's too technical for me ! I'm sure on one point, if some other technical guys don't raise any alert, it's that you proposition goes on the good way ;) If I can, I will try to test some configuration case. Nicolas Le 22/05/2016 09:59, Taher Alkhateeb a écrit : > Hi Jacques, Jacopo and everyone, > > I have a big patch (about 1,500 lines) that among other things deletes CommonsDaemonStart and fully refactors the Start component. > > I need help in checking this patch. The system seems to be running smoothly and all tests pass on my computer. A few more eyeballs on this would help though. > > Thank you for your help! > > Taher Alkhateeb > > -----Original Message----- > From: Jacopo Cappellato [mailto:jacopo.cappellato@hotwaxsystems.com] > Sent: 17 May 2016 10:54 > To: dev@ofbiz.apache.org > Subject: Re: Deleting CommonsDaemonStart.java > > I second this approach as a general rule, if applied carefully and wisely (as it is in this specific case). > By removing incomplete code, the person working on the refactoring will have a simplified system to work with in the refactoring; the removed code will always be available in the history of the revision control system and the persons interested in completing the support of the removed feature will have a chance to check the code out and refactor/complete it. > > Jacopo > > On Tue, May 10, 2016 at 7:03 PM, Jacques Le Roux < jacques.le.roux@les7arts.com> wrote: > >> Actually this is what I think too. Adam never completed the work and >> it's useless as is. Maybe he has his own usage of it, but for a reason >> did not contribute it. >> >> Anyway, I see no problem removing it, it seems Adam and others are >> also not concerned. >> >> Jacques >> >> >> Le 06/05/2016 à 12:11, Taher Alkhateeb a écrit : >> >>> Hi Jacque, >>> >>> I suspect that jsvc is half-cooked and is not really implemented. You >>> can't find commons-daemon-*.jar anywhere in the code base. The only >>> thing that exists is CommonsDaemonStart.java which is exposing >>> Start.start(), >>> Start.shutdownServer() and Start.init() and is not fully implemented >>> (destroy() does nothing). >>> >>> My objective right now is not to implement jsvc (although a good >>> idea) but to clean up the code. It is really nasty to expose >>> Start.java by calling >>> Start.getInstance().init(args) for example. So my suggestion is, if >>> no one is actually using or depending on CommonsDaemonStart.java (I >>> suspect no one is using it) then we are better off deleting it. This >>> makes the refactoring of Start.java much better and actually allows >>> for better implementation of jsvc in the future if needed. >>> >>> So my recommendation for better cleaner code is to simply delete >>> CommonsDaemonStart.java due to poor code and my suspicion that it is >>> not used. Otherwise, I'll have to try and refactor _around_ it. Not >>> sure if we should vote on this, or wait for more feedback, or just drop it? >>> Appreciate >>> any feedback. >>> >>> Taher Alkhateeb >>> >>> >>> >>> On Fri, May 6, 2016 at 11:45 AM, Jacques Le Roux < >>> jacques.le.roux@les7arts.com> wrote: >>> >>> Hi Taher, >>>> Jsvc sounds like a good thing to have. So if you envision a better >>>> to way to have it in OFBiz, please share in a new Jira with a ref to >>>> 5710 >>>> >>>> Thanks >>>> >>>> Jacques >>>> >>>> >>>> Le 05/05/2016 à 17:59, Taher Alkhateeb a écrit : >>>> >>>> Hello Everyone, >>>>> So while trying to refactor Start.java, I see uglier code as I dig >>>>> deeper. >>>>> One of the annoying things I've seen so far is the introduction of >>>>> jsvc through the class org.ofbiz.base.start.CommonsDaemonStart. >>>>> >>>>> The dependency from CommonsDaemonStart.java to Start.java is making >>>>> the code ugly and exposed not to mention some other technical >>>>> problems as discussed in >>>>> https://issues.apache.org/jira/browse/OFBIZ-5710 >>>>> >>>>> I want to know whether the community is using this class and there >>>>> is valuable use for it, or whether we can just delete it. I believe >>>>> we can reintroduce jsvc in a much cleaner way in the future. >>>>> >>>>> Thank you in advance for your feedback. >>>>> >>>>> Taher Alkhateeb >>>>> >>>>> >>>>>