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 797A7200C01 for ; Thu, 19 Jan 2017 18:22:13 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id 781D8160B54; Thu, 19 Jan 2017 17:22:13 +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 99CE5160B3A for ; Thu, 19 Jan 2017 18:22:12 +0100 (CET) Received: (qmail 930 invoked by uid 500); 19 Jan 2017 17:22:11 -0000 Mailing-List: contact dev-help@river.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@river.apache.org Delivered-To: mailing list dev@river.apache.org Received: (qmail 918 invoked by uid 99); 19 Jan 2017 17:22:11 -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; Thu, 19 Jan 2017 17:22:11 +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 023F3C036F for ; Thu, 19 Jan 2017 17:22:11 +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 qhP-cZBUpil5 for ; Thu, 19 Jan 2017 17:22:05 +0000 (UTC) Received: from mail-yw0-f177.google.com (mail-yw0-f177.google.com [209.85.161.177]) by mx1-lw-eu.apache.org (ASF Mail Server at mx1-lw-eu.apache.org) with ESMTPS id 78A7B5FB1E for ; Thu, 19 Jan 2017 17:22:04 +0000 (UTC) Received: by mail-yw0-f177.google.com with SMTP id w75so41388556ywg.1 for ; Thu, 19 Jan 2017 09:22:04 -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=rl2zr+um1Ifq3nJsOGjH2wenulWdkZF4MoTKRPfZUWI=; b=pt7vzD7ixlIPeKHN3qdR42YwEbvO08izdfmAihWrb93Dpc66+cA9RsNf/qWPikt5La na6oJB8CpCMKzHn9qxdgyhy+jEgwBpmsz+f0gJ1fmYXbe4McDxx2N2h69v1KmBdZYWfp srDEyzBl4c6NaqTrCBb5bzm+5s9a33BQ19Oc+C+0RiTVCS/1OQUccqwOuJwD6MXOE5t3 Aggh/jU9++hg9oqEv5h294tqT9Nu6QR/zoTK13H6y2Fo+visMN08Q4Tv0MCnOCXWzvr4 QGwjqmVfPnYAvX3eHT8cuY2GvBGxiWNyy0wSmuQZ944jQ5o29FSLd98UmWOb7edjSU+v ojZA== 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=rl2zr+um1Ifq3nJsOGjH2wenulWdkZF4MoTKRPfZUWI=; b=GpbeJBrnZyiRSi9Me72TazJFlKNsJ4F8t+l0FEP7vY/FAqOXVxlAOoRKw5FrBYuFlB tXpckXGUB2igU/RogLtt1ndD8R3pPVnBKGxBvwpdAdEvGQNjqAb0ZBDM0256l1qoBmzV sDCbiB9M+DHZ45o/GHbCPv5uskUx68rXSBFJ9zRrPpFOzlfGVvd38fLgT+Pi5VQpBi1O qDZVEdkZPtXdpKGKcNCeIBW9ZTp+x/cE+wX6uNDB/uAN9RuYiXM/5rMrplIeWBRC4sJM M8U6Ncazvu4/78FtEb8mZHCgePWMb15+hCo2jDtVyhXHuBC0zSMw+g4DLYc3VNGvqwuG Oerg== X-Gm-Message-State: AIkVDXJnSqRMaHIWUL2/X/6t5NCqpIBqXhM0QUiodDw4V5evSNzNRVpoMFg2XX1zNR7i93NdcyiGRl5pAc8yhw== X-Received: by 10.13.247.6 with SMTP id h6mr7670058ywf.179.1484846523405; Thu, 19 Jan 2017 09:22:03 -0800 (PST) MIME-Version: 1.0 Received: by 10.129.69.37 with HTTP; Thu, 19 Jan 2017 09:22:02 -0800 (PST) Received: by 10.129.69.37 with HTTP; Thu, 19 Jan 2017 09:22:02 -0800 (PST) In-Reply-To: References: From: Bharath Kumar Date: Thu, 19 Jan 2017 22:52:02 +0530 Message-ID: Subject: Re: OSGi To: dev@river.apache.org Content-Type: multipart/alternative; boundary=94eb2c07e55092dd9c054675c527 archived-at: Thu, 19 Jan 2017 17:22:13 -0000 --94eb2c07e55092dd9c054675c527 Content-Type: text/plain; charset=UTF-8 Hello all, I am Bharath kumar and this is my first mail to this group. I am following River framework for the last 8 years. I have been using OSGi framework for the past 7 years in various projects. I made lot of attempts to use jini with OSGi framework. Recently I got some success using River 3.0.0 version. I created 3 OSGi bundles based on River code. 1. River core classes as system fragment bundle. 2. Bootstrap bundle to start code server, Lookup discovery manager, export remote services. 3. Lookup service. I made some minor changes to River classes (10 Classes) to resolve class loading issues. I have excluded other services like transaction services, Java space services. I am using eclipse and bndtools for the development. I am ready to share these 3 bundles to this great community. Thanks & Regards, Bharath On Jan 19, 2017 8:55 AM, "Peter" wrote: Thanks Nic & Richard, will follow up your leads. Peter. Sent from my Samsung device. Include original message ---- Original message ---- From: Niclas Hedhman Sent: 18/01/2017 08:34:11 pm To: dev@river.apache.org Subject: Re: OSGi Also, I am still on this list, and can aid with answering question in details, but not really to put in hours to do the actual work. The maven-bnd-plugin does most things right, but there is always a question of hiding internal packages/classes. Instead of aiming for running 'naked' on a blank OSGi container, I think it is generally better to start out with something like Apache Karaf. It will provide a lot for relatively little, incl so called wrapping of JARs into Bundles, provided by Pax URL[1] project, which also provides URL references of various kinds for many things. So, even if not going with Karaf, take a look at Pax URL. And in River, there is likely to be classloading issues, and although "Dynamic-ImportPackage" is available as a last resort, it should be avoided. Almost always the context classloader is a "mess", and there is a tendency of memory leaks when it is involved. [1] https://ops4j1.jira.com/wiki/display/paxurl/Pax+URL On Wed, Jan 18, 2017 at 11:18 AM, Peter Firmstone < peter.firmstone@zeus.net.au> wrote: > Any OSGi veterans willing to assist with JGDMS support for OSGi during the > modular restructure? > > I've added OSGi manifests to modules, but I also need to add classpath > manifest entry's for non osgi application compatibility, I'm using the > bnd-maven-plugin to generate the OSGi manifests. > > I also want to enable using ServiceLoader mediator manifest entry's for > OSGi, as the use of service provider style abstractions within River are > widespread. > > River also has its own service provider lookup mechanism: > org.apache.resources.Service > > Then there's the use of context ClassLoader's throughout to consider. > > Regards, > > Peter. > > Sent from my Samsung device. > > -- Niclas Hedhman, Software Developer http://polygene.apache.org - New Energy for Java --94eb2c07e55092dd9c054675c527--