Return-Path: X-Original-To: apmail-activemq-dev-archive@www.apache.org Delivered-To: apmail-activemq-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 2F771181CC for ; Tue, 24 Nov 2015 20:29:24 +0000 (UTC) Received: (qmail 80056 invoked by uid 500); 24 Nov 2015 20:29:24 -0000 Delivered-To: apmail-activemq-dev-archive@activemq.apache.org Received: (qmail 79943 invoked by uid 500); 24 Nov 2015 20:29:23 -0000 Mailing-List: contact dev-help@activemq.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@activemq.apache.org Delivered-To: mailing list dev@activemq.apache.org Received: (qmail 79849 invoked by uid 99); 24 Nov 2015 20:29:23 -0000 Received: from Unknown (HELO spamd1-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 24 Nov 2015 20:29:23 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd1-us-west.apache.org (ASF Mail Server at spamd1-us-west.apache.org) with ESMTP id 00C52C3ADC for ; Tue, 24 Nov 2015 20:29:23 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd1-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -0.099 X-Spam-Level: X-Spam-Status: No, score=-0.099 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, URIBL_BLOCKED=0.001] autolearn=disabled Authentication-Results: spamd1-us-west.apache.org (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.com Received: from mx1-us-west.apache.org ([10.40.0.8]) by localhost (spamd1-us-west.apache.org [10.40.0.7]) (amavisd-new, port 10024) with ESMTP id CiB6t4NZbdFC for ; Tue, 24 Nov 2015 20:29:08 +0000 (UTC) Received: from mail-vk0-f45.google.com (mail-vk0-f45.google.com [209.85.213.45]) by mx1-us-west.apache.org (ASF Mail Server at mx1-us-west.apache.org) with ESMTPS id 7E40A20944 for ; Tue, 24 Nov 2015 20:29:08 +0000 (UTC) Received: by vkfr145 with SMTP id r145so20610228vkf.0 for ; Tue, 24 Nov 2015 12:29:07 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=PBz4QotZAG8wbFecoDrQCBxXmNnzEaVe2f7IjHxAUbo=; b=acb0KZ+f5WytiuEZbhqmjKe0jAKqr2BRbkk8R/siVXI23TjE6BwOe2AkrpFbyA/QWx IPJmmhFsYabjdp3YWog0eoDurMizsu2IcSxJMzbvMQlQho/4m7FQpFstZqkXZrNbZxQd Oujw6qiRCaRv7r9nP2fzMxwtKNVLS4CsaG09FvbyHxLBMZ1bC8R4hWS3RyQyKijFZ2oR Ru2vbj3tXVFMQXp6HCJ/4c2rjwYEF+Q/bijyleraaCBKgsmjqcfQ2OPj7jCD4hZEyDoo JGJ03zMh/9KuRdI8Rpe7s2MRhUfrz2MoU0hIijQJTfQdZSh0f7Pgev9pC8JqMQP1s1Q7 Xcrg== MIME-Version: 1.0 X-Received: by 10.31.132.2 with SMTP id g2mr28315557vkd.94.1448396947604; Tue, 24 Nov 2015 12:29:07 -0800 (PST) Received: by 10.31.87.134 with HTTP; Tue, 24 Nov 2015 12:29:07 -0800 (PST) In-Reply-To: <56516E62.3070404@die-schneider.net> References: <564F2B7F.8060000@die-schneider.net> <56516E62.3070404@die-schneider.net> Date: Tue, 24 Nov 2015 15:29:07 -0500 Message-ID: Subject: Re: Artemis OSGi: Prototype available From: Clebert Suconic To: "dev@activemq.apache.org" , chris@die-schneider.net Content-Type: text/plain; charset=UTF-8 I ran a few tests with this and it seems fine (hence I merged it). just one thing on this.. I think it we could add more tests.. (and maybe one example, since that has double purpose.. docs and indirectly gives us nice smoke tests) I think we could improve this further by bumping the release into 2.0 next year and fix these packages. We should have a release soon with the current master, and if we bump the release as 2.0 we can make small changes to the API. (I don't think we should do any drastic changes). On Sun, Nov 22, 2015 at 2:27 AM, Christian Schneider wrote: > > > Am 21.11.2015 um 11:28 schrieb Guillaume Nodet: >> >> Good work ! >> >> A few remarks: >> * the native bundle needs some specific headers for loading the native >> libraries I think > > I have not looked into the native module in detail but most probably yes. >> >> * the protocol tracking needs to be done with a real service tracker, >> shutting down the server if the protocol service is unregistered, and >> waiting for the protocols needed in the configuration (and printing a log >> message to know what the configuration is waiting for) > > Yes. That part needs to be improved. Currently it is too brittle and also > does not cope with changes once artemis is up. > > This is what have in mind for it: > 1. Read the config and find the needed protocols. I hope we can use the > existing FileConfiguration for this and extract the information > 2. Create a service tracker that tracks all ProtocolManagerFactory services > and for each service added / removed checks the difference between > the wanted and present protocols. While not all needed protocols are present > it can print that the server can not yet start as a list of protocols is > missing. > 3. Once the last missing protocol comes up the Artemis server is started > 4. When one of the necessary protocols goes down the Artemis server is > stopped again > > So this should then be able to adapt to changes. > > At a later point we can think of changing the Artemis design so it can adapt > to protocol availability without restarting Artemis. So the server could > start without the protocols and > add and remove them online. I do not think we strictily need this to get > started with OSGi though. > >> * the protocol factory services need to have a list of protocols on the >> properties (those obtained from ProtocolManagerFactory#getProtocols() so >> that they can be tracked correctly I think > > I think we can do without the properties on the service level. We can simply > track all services and > ask each service for the protocols it supports. >> >> * i think we should provide a ready-to-use feature with default >> configuration, such as ActiveMQ provides (installing the default config in >> etc/artemis.xml and needed configadmin config for the broker factory) > > +1 > > > Christian > -- Clebert Suconic