From user-return-18660-archive-asf-public=cust-asf.ponee.io@karaf.apache.org Wed May 30 23:04:58 2018 Return-Path: X-Original-To: archive-asf-public@cust-asf.ponee.io Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by mx-eu-01.ponee.io (Postfix) with SMTP id CB4A118063B for ; Wed, 30 May 2018 23:04:57 +0200 (CEST) Received: (qmail 18358 invoked by uid 500); 30 May 2018 21:04:56 -0000 Mailing-List: contact user-help@karaf.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user@karaf.apache.org Delivered-To: mailing list user@karaf.apache.org Received: (qmail 18347 invoked by uid 99); 30 May 2018 21:04:56 -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; Wed, 30 May 2018 21:04:56 +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 6A298180837 for ; Wed, 30 May 2018 21:04:56 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd3-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 2.812 X-Spam-Level: ** X-Spam-Status: No, score=2.812 tagged_above=-999 required=6.31 tests=[KAM_LAZY_DOMAIN_SECURITY=1, KAM_NUMSUBJECT=0.5, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_PASS=-0.001, URI_HEX=1.313] autolearn=disabled Received: from mx1-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 eAIIW3Hllk2A for ; Wed, 30 May 2018 21:04:53 +0000 (UTC) Received: from n3.nabble.com (n3.nabble.com [162.255.23.22]) by mx1-lw-eu.apache.org (ASF Mail Server at mx1-lw-eu.apache.org) with ESMTP id ACD565F358 for ; Wed, 30 May 2018 21:04:52 +0000 (UTC) Received: from n3.nabble.com (localhost [127.0.0.1]) by n3.nabble.com (Postfix) with ESMTP id 5ABFDD38737A for ; Wed, 30 May 2018 14:04:51 -0700 (MST) Date: Wed, 30 May 2018 14:04:51 -0700 (MST) From: Tim Jones To: user@karaf.apache.org Message-ID: <1527714291368-0.post@n3.nabble.com> In-Reply-To: <1527620075625-0.post@n3.nabble.com> References: <1527620075625-0.post@n3.nabble.com> Subject: Re: JPA (Hibernate) with Apache Karaf 4.2 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Hi Alex, while I recognise this does not answer your question I thought it might help being that you stated you are new OSGi and you asked "as there are better practices for persistence in OSGi?" Are you aware of the broader OSGi landscape regarding Declarative Services/Bluerprint/POJO/Everit components/CDI + other. If you come to a point where you are about to embark upon a significant piece of work it may pay to do some reading on this. Not a great analogy but it would be a bit like starting with an example based on JEE not knowing that the Spring framework existed. You may latter have then wished you had known about the Spring framework to make a more strategic decision as to what framework you wanted to base your application. The example you are working with is based upon Aries Blueprint, the are other examples based upon DS e.g the enRoute example https://enroute.osgi.org/tutorial/032-tutorial_microservice-jpa.html, each has it's pros and cons. The following is worth a read http://karaf.922171.n3.nabble.com/Blueprint-or-DS-or-what-to-use-td4045845.html Regards, Tim Jones -- Sent from: http://karaf.922171.n3.nabble.com/Karaf-User-f930749.html