Return-Path: Delivered-To: apmail-aries-dev-archive@www.apache.org Received: (qmail 12528 invoked from network); 6 Jan 2011 10:16:22 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 6 Jan 2011 10:16:22 -0000 Received: (qmail 39609 invoked by uid 500); 6 Jan 2011 10:16:21 -0000 Delivered-To: apmail-aries-dev-archive@aries.apache.org Received: (qmail 39465 invoked by uid 500); 6 Jan 2011 10:16:19 -0000 Mailing-List: contact dev-help@aries.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@aries.apache.org Delivered-To: mailing list dev@aries.apache.org Received: (qmail 39457 invoked by uid 99); 6 Jan 2011 10:16:19 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 06 Jan 2011 10:16:19 +0000 X-ASF-Spam-Status: No, hits=-0.7 required=10.0 tests=FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,RFC_ABUSE_POST,SPF_PASS,T_TO_NO_BRKTS_FREEMAIL X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of cmoulliard@gmail.com designates 209.85.213.50 as permitted sender) Received: from [209.85.213.50] (HELO mail-yw0-f50.google.com) (209.85.213.50) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 06 Jan 2011 10:16:14 +0000 Received: by ywo7 with SMTP id 7so6836156ywo.23 for ; Thu, 06 Jan 2011 02:15:53 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from :user-agent:mime-version:to:subject:references:in-reply-to :content-type:content-transfer-encoding; bh=TODZYdU3bO3IfXt0vGKwtylYFos3WYxqTkC3cF7kfNg=; b=KoLXNBzrMIXvUgLFNisf4x7kui6j28clQyFR8Xx5PYWR5MENvQxYjcGefXE/Ejvukj F03AJAfNEPvQ16ouQmyyTKjDo5Ll7qv0UoD54Vly6k290PGgbKcKEwIaw9oRhzAv5QOJ tjruLB7nm405FAsy12cFP1ErINIptjVlQXvCQ= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:user-agent:mime-version:to:subject:references :in-reply-to:content-type:content-transfer-encoding; b=spgCcoQf3mhyXVoOmkGwEjcfFuLooeY2328HtuxAgx5f2ezIEWVe+Dgq2iUA3YfGfu uZ4QZvroLUxs68pdgvW4psHOjETxWN548gWTB06H2hVO26KafQX7Bbm4sDjR7N07jXjq 5wYiVVbN3onlaS1cNSkvX0Sk9U+YVftWrUM/0= Received: by 10.100.152.6 with SMTP id z6mr14333707and.90.1294308953322; Thu, 06 Jan 2011 02:15:53 -0800 (PST) Received: from Charles-Moulliards-MacBook-Pro.local (ip-83-134-61-2.dsl.scarlet.be [83.134.61.2]) by mx.google.com with ESMTPS id c7sm32061428ana.17.2011.01.06.02.15.50 (version=SSLv3 cipher=RC4-MD5); Thu, 06 Jan 2011 02:15:51 -0800 (PST) Message-ID: <4D259654.2090604@gmail.com> Date: Thu, 06 Jan 2011 11:15:48 +0100 From: Charles Moulliard User-Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.6; en-US; rv:1.9.2.13) Gecko/20101207 Thunderbird/3.1.7 MIME-Version: 1.0 To: dev@aries.apache.org Subject: Re: Bundles required to deploy .eba files References: <4D256D03.6090506@gmail.com> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit I mean that to be able to use Aries Application on Karaf we must use "deprecated APIs based on early drafts of OSGi RFC138 (org.osgi.service.framework.CompositeBundle, org.osgi.service.framework.CompositeBundleFactory) in order to create and manage these framework instances. My understanding is that Equinox implements these APIs, but that the Felix does not" which is not implemented by Apache Felix framework. On 06/01/11 09:54, Mark Nuttall wrote: > Hi Charles, >> I prefer not to use EBA on Apache Karaf as we will have conflicts between the >> required osgi version installed and the old needed by Aries Application. > Are you referring back to our earlier discussion about FileInstall? > Otherwise I'm not sure I know what you mean by the "required osgi > version installed and the old needed by Aries Application." > > Regards, > Mark > > On 6 January 2011 07:19, Charles Moulliard wrote: >> Hi Mark, >> >> Thx for the information and to take the time to answer to my question. We >> have to wait that Aries implements the Resolver Hooks as you mention it in >> your email. In the meantime, I prefer >> not to use EBA on Apache Karaf as we will have conflicts between the >> required osgi version installed and the old needed by Aries Application. >> When Resolver Hooks will be implemented, then I will make new tests with >> EBA. For the moment, we can continue to work with WAR deployment using >> pax-web. >> >> Regards, >> >> Charles >> >> >> On 04/01/11 12:00, Mark Nuttall wrote: >>> Hi Charles, >>>> What do you plan to do to align Aries Application with OSGI Service >>>> as you use a deprecated API ony supported by Equinox and not Felix ? >>> It's perhaps worth noting that Felix, to the best of my knowledge, >>> offers no equivalent function. The API is deprecated not because it's >>> been withdrawn, but because it's not yet stable. I hope very much that >>> we will be able to reimplement Aries Application support on top of >>> Resolver Hooks, described in >>> http://www.osgi.org/download/osgi-4.3-early-draft2.pdf, once they >>> become available. >>> >>>> Could you upgrade Aries Application to support Apache Felix >>>> FileInstall range of version from 2.x to 3.x as we use 3.1.0 on Apache >>>> Karaf ? >>> That's not the sort of version range I'd be happy describing anything >>> as supporting :) However if you'd like to raise a JIRA and post a >>> patch moving us up to FileInstall 3.1.0 in general I'd be happy to >>> review and commit it. >>> >>> Regards, >>> Mark >>> >>> On 3 January 2011 10:51, Charles Moulliard wrote: >>>> Hi Mark, >>>> >>>> Happy New-Year 2011 and many thanks for the information. I have >>>> started to create a feature file to deploy those bundles on Apache >>>> Karaf OSGI container. What do you plan to do to align Aries >>>> Application with OSGI Service as you use a deprecated API ony >>>> supported by Equinox and not Felix ? >>>> >>>> Remark : Could you upgrade Aries Application to support Apache Felix >>>> FileInstall range of version from 2.x to 3.x as we use 3.1.0 on Apache >>>> Karaf ? >>>> >>>> Regards, >>>> >>>> Charles Moulliard >>>> >>>> Sr. Principal Solution Architect - FuseSource >>>> Apache Committer >>>> >>>> Blog : http://cmoulliard.blogspot.com >>>> Twitter : http://twitter.com/cmoulliard >>>> Linkedin : http://www.linkedin.com/in/charlesmoulliard >>>> Skype: cmoulliard >>>> >>>> >>>> >>>> On Wed, Dec 29, 2010 at 11:00 AM, Mark Nuttall >>>> wrote: >>>>> Hi Charles, >>>>>> 1) Can someone tell me what are the bundles required to deploy eba >>>>>> files on Apache Karaf/Felix ? groupId/artificactId >>>>> For some working examples, please see >>>>> >>>>> application/application-itests/src/test/java/IsolatedRuntimeTest.java, >>>>> >>>>> and the three BlogSampleWithEba itests, such as >>>>> >>>>> samples/blog/blog-itests/JpaBlogSampleWithEbaTest.java >>>>> >>>>> Firstly there is a set of common prereqs, where the arguments to >>>>> mavenBundle are (group, artifact): >>>>> >>>>> mavenBundle("org.apache.aries.blueprint", "org.apache.aries.blueprint" >>>>> ), >>>>> mavenBundle("org.apache.aries.proxy", "org.apache.aries.proxy"), >>>>> mavenBundle("org.apache.aries", "org.apache.aries.util" ), >>>>> mavenBundle("org.apache.felix", "org.apache.felix.bundlerepository"), >>>>> >>>>> There there's a set of common bundles in the >>>>> org.apache.aries.application group: >>>>> >>>>> mavenBundle("org.apache.aries.application", >>>>> "org.apache.aries.application.resolver.obr"), >>>>> mavenBundle("org.apache.aries.application", >>>>> "org.apache.aries.application.install" ), >>>>> mavenBundle("org.apache.aries.application", >>>>> "org.apache.aries.application.api" ), >>>>> mavenBundle("org.apache.aries.application", >>>>> "org.apache.aries.application.management" ), >>>>> mavenBundle("org.apache.aries.application", >>>>> "org.apache.aries.application.utils" ), >>>>> mavenBundle("org.apache.aries.application", >>>>> "org.apache.aries.application.modeller"), >>>>> mavenBundle("org.apache.aries.application", >>>>> "org.apache.aries.application.default.local.platform"), >>>>> mavenBundle("org.apache.aries.application", >>>>> "org.apache.aries.application.noop.platform.repo"), >>>>> mavenBundle("org.apache.aries.application", >>>>> "org.apache.aries.application.noop.postresolve.process"), >>>>> mavenBundle("org.apache.aries.application", >>>>> "org.apache.aries.application.deployment.management"), >>>>> >>>>> Finally we have two different runtimes. >>>>> >>>>> mavenBundle("org.apache.aries.application", >>>>> "org.apache.aries.application.runtime" ), >>>>> >>>>> is very simple: it just installs every bundle into a single framework. >>>>> It provides no isolation between different .ebas, and was really only >>>>> written so as to demonstrate that >>>>> org.apache.aries.application.management was functional. I don't >>>>> believe anyone's put this runtime to serious use yet. >>>>> >>>>> Alternatively, the next group of bundles provide a far more rugged and >>>>> functional runtime environment, in which the bundles listed in each >>>>> application's Application-Content header are isolated from each other >>>>> by being installed into their own framework. The only drawback here is >>>>> that org.apache.aries.application.runtime.framework has to use >>>>> deprecated APIs based on early drafts of OSGi RFC138 >>>>> (org.osgi.service.framework.CompositeBundle, >>>>> org.osgi.service.framework.CompositeBundleFactory) in order to create >>>>> and manage these framework instances. My understanding is that Equinox >>>>> implements these APIs, but that the Felix does not. >>>>> >>>>> mavenBundle("org.apache.aries.application", >>>>> "org.apache.aries.application.runtime.isolated"), >>>>> mavenBundle("org.apache.aries.application", >>>>> "org.apache.aries.application.runtime.framework"), >>>>> mavenBundle("org.apache.aries.application", >>>>> "org.apache.aries.application.runtime.framework.management"), >>>>> mavenBundle("org.apache.aries.application", >>>>> "org.apache.aries.application.runtime.repository"), >>>>> equinox().version("3.5.0")); >>>>> >>>>>> 2) Can we deploy an eba file using the same command as we use to >>>>>> deploy a bundle mvn:groupId/artifactId/version/eba ? >>>>> I suspect that extra work might be required in order to achieve that. >>>>> As you'll see from the itests, the mechanism today is of the form, >>>>> >>>>> URL urlToEba = getUrlToEba("org.apache.aries.samples.blog", >>>>> "org.apache.aries.samples.blog.jpa.eba"); >>>>> AriesApplicationManager manager = >>>>> getOsgiService(AriesApplicationManager.class); >>>>> AriesApplication app = manager.createApplication(urlToEba); >>>>> AriesApplicationContext ctx = manager.install(app); >>>>> ctx.start(); >>>>> >>>>> Do let us know how you get on! >>>>> >>>>> Regards, >>>>> Mark >>>>> >>>>> On 27 December 2010 09:03, Charles Moulliard >>>>> wrote: >>>>>> Hi, >>>>>> >>>>>> 1) Can someone tell me what are the bundles required to deploy eba >>>>>> files on Apache Karaf/Felix ? >>>>>> groupId/artificactId >>>>>> >>>>>> 2) Can we deploy an eba file using the same command as we use to >>>>>> deploy a bundle mvn:groupId/artifactId/version/eba ? >>>>>> >>>>>> Charles Moulliard >>>>>> >>>>>> Sr. Principal Solution Architect - FuseSource >>>>>> Apache Committer >>>>>> >>>>>> Blog : http://cmoulliard.blogspot.com >>>>>> Twitter : http://twitter.com/cmoulliard >>>>>> Linkedin : http://www.linkedin.com/in/charlesmoulliard >>>>>> Skype: cmoulliard >>>>>>