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 D49C1200BFD for ; Sun, 15 Jan 2017 19:28:17 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id C8078160B32; Sun, 15 Jan 2017 18:28:17 +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 1AE05160B2B for ; Sun, 15 Jan 2017 19:28:16 +0100 (CET) Received: (qmail 74810 invoked by uid 500); 15 Jan 2017 18:28:16 -0000 Mailing-List: contact dev-help@karaf.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@karaf.apache.org Delivered-To: mailing list dev@karaf.apache.org Received: (qmail 74798 invoked by uid 99); 15 Jan 2017 18:28:15 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd4-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 15 Jan 2017 18:28:15 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd4-us-west.apache.org (ASF Mail Server at spamd4-us-west.apache.org) with ESMTP id 8576EC0744 for ; Sun, 15 Jan 2017 18:28:15 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd4-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 2.379 X-Spam-Level: ** X-Spam-Status: No, score=2.379 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, HTML_MESSAGE=2, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, RCVD_IN_SORBS_SPAM=0.5, SPF_PASS=-0.001] autolearn=disabled Authentication-Results: spamd4-us-west.apache.org (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.com Received: from mx1-lw-eu.apache.org ([10.40.0.8]) by localhost (spamd4-us-west.apache.org [10.40.0.11]) (amavisd-new, port 10024) with ESMTP id RU6y2UKQJ55d for ; Sun, 15 Jan 2017 18:28:13 +0000 (UTC) Received: from mail-wm0-f51.google.com (mail-wm0-f51.google.com [74.125.82.51]) by mx1-lw-eu.apache.org (ASF Mail Server at mx1-lw-eu.apache.org) with ESMTPS id 6DEF25FCC6 for ; Sun, 15 Jan 2017 18:28:12 +0000 (UTC) Received: by mail-wm0-f51.google.com with SMTP id r126so131976918wmr.0 for ; Sun, 15 Jan 2017 10:28:12 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to; bh=6yTZYVBJUd3KvMCyb5O7iW6SVann4CysPduJ4oSvoAs=; b=lqrEl2PN7rfHw1DMLYRFLU9l7ndQ3IFbhGNrhIWaTjbFb9bCwysqVmP7S1Gj9BmCJ7 tDEiniyJebgbDGl4x4Z7XpNKoAXogwQIOMuyJm4QjnQOoyFPLzPrSLxPMpZY/GaGkW3R XpfTdggK1BX7LgouK56wZYVwPqlLkdPxzlo9b2kDrR9HoTcDKM6wHREsviaNWQ8BDLDk 2RAb3+6Q4zHBeDoAkJftO1IuqqWY/gtVn2GimgsOzNLXDDM4/nynhDQiq3g6QumUHixQ F3nGqE8BhyBRDjrmM4EUg1a2MdF5kkl4B/yBanajAb0vOZ357/ujDqEElgux69gNGkcC l4yQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to; bh=6yTZYVBJUd3KvMCyb5O7iW6SVann4CysPduJ4oSvoAs=; b=IGXgYW2iT2I3pyVjYvIuvTVnGPPrj1pAYhsuBXQUhmqGFzl9txemn0sgnAXiHK1jyn Zk5JgyKVqjikXGKdgvnPKQZEr6AuMfXnWaAptRs0oMrbZ73cHVKlEyHmZs1V2jyTmgPg LJwOdAUhoAm1cbefGoYEXcNPZ8+gTuULvbREp3bAW1Blkq08isfEdlF0OIob0jLUuA67 J47nvEQK2kABbzQJs+td52MXJ1aZN84szolC+ky5JrjcGzdhqKLGT1fLwZilk/ktuHxR xMkIgkGCaSRBt2XfFqDG0adC8dLeg4Bx2Rspihb12wE3F05czj8dTuv0fHWjhbSXyqpz 76yA== X-Gm-Message-State: AIkVDXJiOA4A1sc/0G+ENurd6+bOE6qGlwFK1nAdueIxHMLB7fPKPqtec8jfNe38o8SX6CNJ4zdd1jkzak03Kw== X-Received: by 10.28.182.70 with SMTP id g67mr9793710wmf.131.1484504890561; Sun, 15 Jan 2017 10:28:10 -0800 (PST) MIME-Version: 1.0 Received: by 10.80.146.116 with HTTP; Sun, 15 Jan 2017 10:28:10 -0800 (PST) In-Reply-To: <7914fe48-7602-be32-41a9-3a7ad210b935@nanthrax.net> References: <7914fe48-7602-be32-41a9-3a7ad210b935@nanthrax.net> From: Matt Sicker Date: Sun, 15 Jan 2017 12:28:10 -0600 Message-ID: Subject: Re: [PROPOSAL] Add convenient and "starter" examples in Karaf Container distribution To: Karaf Developers List Content-Type: multipart/alternative; boundary=001a114b10f4ab63100546263aa5 archived-at: Sun, 15 Jan 2017 18:28:18 -0000 --001a114b10f4ab63100546263aa5 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Sounds amazing! I've always found the hardest part about getting developers to use OSGi is the lack of clear, up to date examples. It's probably why Spring Boot has been so successful, and it's also why I've started working on a similar project in Log4j. A related tool that might super useful for Karaf in the future is Atomist < https://www.atomist.com/> which can be used to provide project templates/editors to add or configure optional features and such with new and existing projects. On 15 January 2017 at 12:15, Jean-Baptiste Onofr=C3=A9 wr= ote: > Hi guys, > > In the preparation for the Karaf 4.1.0 release, I'm working on the final > touches on the developer guide. > > As part of this, I created simple example projects: > - Service with pure OSGi (registration/reference) > - Configuration management with ConfigAdmin service > - Configuration with ManagedService > - Configuration with ManagedServiceFactory > - Service with Blueprint (registration/reference) > - Service with DS/SCR (registration/reference) > - Create a custom Command > - Create a custom MBean > - Create a custom URL NamespaceHandler > - Logging custom appender > - Create a custom deployer > - Create a custom JAAS LoginModule > - Security realm usage > - Encryption service usage > - Create a servlet > - Create a WAB and use service > - Use Karaf JNDI > - Use and manipulate JDBC service > - Use and manipulate JMS service > - Use of JPA & JTA > - Use of CDI > - Use of CXF for WebServices (very quick and simple, README is referencin= g > CXF website/samples) > - Use of Camel in Karaf (very quick and simple, README is referencing > Camel website/samples) > - Profiles > > I tried basically to list the most common questions/requests we got from > users when they start with Karaf. > > These samples and new developer guide are already ready, I will create a > pull request tonight or Tuesday (I'm traveling tomorrow). > > I did: > - a samples module containing those samples, including a README for each > sample > - moved the content of demo in samples (demo is removed) > - updated the developer guide based on README in those samples > - add new archetypes ("starter") to create the code of the samples too > > The idea is to provide quick ways (starters) for end-users to start with > Karaf, providing practical samples. It's a first start/transition waiting > for Karaf Boot. However, as Karaf Boot > > I plan to add the same things in Decanter (create custom collector, > appenders, alerters, ...) and Cellar (use of distribution map, DOSGi, ...= ). > > Thoughts ? > > Regards > JB > -- > Jean-Baptiste Onofr=C3=A9 > jbonofre@apache.org > http://blog.nanthrax.net > Talend - http://www.talend.com > --=20 Matt Sicker --001a114b10f4ab63100546263aa5--