Return-Path: Delivered-To: apmail-geronimo-dev-archive@www.apache.org Received: (qmail 93222 invoked from network); 4 Jan 2010 06:22:56 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 4 Jan 2010 06:22:56 -0000 Received: (qmail 40309 invoked by uid 500); 4 Jan 2010 06:22:55 -0000 Delivered-To: apmail-geronimo-dev-archive@geronimo.apache.org Received: (qmail 40224 invoked by uid 500); 4 Jan 2010 06:22:55 -0000 Mailing-List: contact dev-help@geronimo.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: List-Post: Reply-To: dev@geronimo.apache.org List-Id: Delivered-To: mailing list dev@geronimo.apache.org Received: (qmail 40216 invoked by uid 99); 4 Jan 2010 06:22:55 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 04 Jan 2010 06:22:55 +0000 X-ASF-Spam-Status: No, hits=2.2 required=10.0 tests=HTML_MESSAGE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of xhhsld@gmail.com designates 209.85.221.201 as permitted sender) Received: from [209.85.221.201] (HELO mail-qy0-f201.google.com) (209.85.221.201) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 04 Jan 2010 06:22:48 +0000 Received: by qyk39 with SMTP id 39so7309314qyk.27 for ; Sun, 03 Jan 2010 22:22:28 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:content-type; bh=VZvKWmN3ZudLsHLhtGr6adgNQiPV/VcLqFv+TZiZdO4=; b=LS56valzbXMQ6aVXAdsjLU5Rcp5aHQId3VyfyCGAZHrFVL+ZOoQ9EsJev0rOu5rSKo JzNBFd9/GUJMWir5whnzlUlpziLWjx8r4rgZsay7dbQZkY5CggM1VdsYU2+RkYo2c1D3 f0lmcPizJJfpfrY/Q+elKwqdEC3rxje9hcj2Q= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; b=VtKrmj/8JiSEVPjeNHjqX9wT5HjrsjpeoStHwFK6knJYVJTejfMURa32PsJ0Dm/000 C7HDx+y32K7CpjOdcw7YM6EuwUptWfGxX/BuOSuxCz0ch4RrmZOHdXkS19aBaqxuZW7E le8vy0JC7PgCg2uXUz5vlQWzE97e7zEiGOS4E= MIME-Version: 1.0 Received: by 10.229.61.28 with SMTP id r28mr9623876qch.10.1262586148027; Sun, 03 Jan 2010 22:22:28 -0800 (PST) In-Reply-To: <45f744e41001032219x235a67c3ge589ea95e9c6bb6a@mail.gmail.com> References: <45f744e40912280651p3898657i1a980ef996db5a1e@mail.gmail.com> <45f744e40912281829o64d7ae30g6e007e36291a3261@mail.gmail.com> <45f744e40912310033o7d1ef43au151cb3e8d183973a@mail.gmail.com> <9990A76C-D2B4-41D4-B6DA-10C0D0A272C0@yahoo.com> <45f744e40912310610m675d251cta9647ae1b7304193@mail.gmail.com> <45f744e41001031753i28127ef6k3212542bb129a9d0@mail.gmail.com> <2B5C967A-8D33-46D2-A556-E955B0DF1434@yahoo.com> <45f744e41001032219x235a67c3ge589ea95e9c6bb6a@mail.gmail.com> Date: Mon, 4 Jan 2010 14:22:27 +0800 Message-ID: <45f744e41001032222g178a2cbev9cac60a9ecab1bee@mail.gmail.com> Subject: Re: About deploying web applications to Tomcat 7.0 From: Ivan To: dev@geronimo.apache.org Content-Type: multipart/alternative; boundary=00151757739ad9fe6b047c50be16 --00151757739ad9fe6b047c50be16 Content-Type: text/plain; charset=ISO-8859-1 By the way, is there any introduction for the Aries application bundle ? I did not find too much things on their wiki. 2010/1/4 Ivan > Yes, I am also sure that it should be easy to make the mvn protocol handler > to support the nested bundle function. The reason for saying "not a > standard bundle" is for the no-copying OSGI bundle deployment, I guess that > it might be more difficult if the source file is a nested bundle file. > However, it is just a guess ;-) > > 2010/1/4 David Jencks > > >> On Jan 3, 2010, at 5:53 PM, Ivan wrote: >> >> >> I will try the solution about dividing the ear as multiple bundles, the >>>> ear itself is one, all the modules it contains are the others, and it is >>>> possible to use require-bundle to connect the module bundle to the ear >>>> bundle. >>>> >>> >>> I'd prefer to avoid require-bundle. I was thinking of modifying the pax >>> url handler so that we could continue to repackage the ear as we do now, but >>> have the car file contain several bundles corresponding to the different >>> modules inside. We could perhaps imitate jar urls and append ! >>> to point to an "internal" bundle. If we did this the car would still be a >>> single artifact in maven but would supply all the bundles at once. >>> >>> Yes, require-bundle did not have a good reputation in the OSGI world, >>> but in this scenario, I think we could use it to reduce the complexity. >>> Keeping the same package way is a good choice, for currently, the >>> repository directory is a really 'repository', Geronimo never loads any >>> class from it, ^_^. But if in that way, the file is not a standard bundle, >>> and it only works for the special url handler. >>> >> >> Well, after the bundle gets extracted by the url handler it's a plain >> ordinary bundle. The car-with bundles-inside is really just a delivery >> mechanism. I'm pretty sure it would be easy to implement, but might not be >> a great idea long term. It might be convenient until we find something >> better. On the other hand it might get popular in other contexts. >> >> I forgot to mention that the other approach that seems promising to me is >> to use the application bundle idea from the aries project. >> >> thanks >> david jencks >> >> >>> One thing I am thinking is that how to generate the exports for the ear >>>> bundle, maybe the deployer might need use something like asm to scan all the >>>> library files. >>>> >>> >>> I think we should look into using BND for this. >>> >>> Yes, BND should help us. >>> >>> thanks >>> david jencks >>> >> >> > > > > -- > Ivan > -- Ivan --00151757739ad9fe6b047c50be16 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable By the way, is there any introduction for the Aries application bundle ? I = did not find too much things on their wiki.

2010/1/4 Ivan <= xhhsld@gmail.com>
Yes, I am also su= re that it should be easy to make the mvn protocol handler to support the n= ested bundle function.=A0 The reason for saying "not a standard bundle= " is for the no-copying OSGI bundle deployment, I guess that it might = be more difficult if the source file is a nested bundle file. However, it i= s just a guess ;-)

2010/1/4 David Jencks <= david_jencks@ya= hoo.com>


On Jan 3, 2010, at 5:53 PM, Ivan wrote:
<snip>

I will try the solution about dividing the ear as multiple bundles, the ear= itself is one, all the modules it contains are the others, and it is possi= ble to use require-bundle to connect the module bundle to the ear bundle.

I'd prefer to avoid require-bundle. =A0I was thinking of modifying the = pax url handler so that we could continue to repackage the ear as we do now= , but have the car file contain several bundles corresponding to the differ= ent modules inside. =A0We could perhaps imitate jar urls and append !<mo= duleName> to point to an "internal" bundle. =A0If we did this = the car would still be a single artifact in maven but would supply all the = bundles at once.

=A0 =A0Yes, require-bundle did not have a good reputation in the OSGI worl= d, but in this scenario, I think we could use it to reduce the complexity.<= br> =A0 =A0Keeping the same package way is a good choice, for currently, the r= epository directory is a really 'repository', Geronimo never loads = any class from it, ^_^. =A0But if in that way, the file is not a standard b= undle, and it only works for the special url handler.

Well, after the bundle gets extracted by the url handler it's a plain o= rdinary bundle. =A0The car-with bundles-inside is really just a delivery me= chanism. =A0I'm pretty sure it would be easy to implement, but might no= t be a great idea long term. =A0It might be convenient until we find someth= ing better. =A0On the other hand it might get popular in other contexts.
I forgot to mention that the other approach that seems promising to me is t= o use the application bundle idea from the aries project.

thanks
david jencks


One thing I am thinking is that how to generate the exports for the ear bun= dle, maybe the deployer might need use something like asm to scan all the l= ibrary files.

I think we should look into using BND for this.

=A0 =A0Yes, BND should help us.

thanks
david jencks
<snip>



--
Ivan



--
Ivan
--00151757739ad9fe6b047c50be16--