Return-Path: Delivered-To: apmail-felix-dev-archive@www.apache.org Received: (qmail 21589 invoked from network); 9 Oct 2010 22:04:02 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 9 Oct 2010 22:04:02 -0000 Received: (qmail 26070 invoked by uid 500); 9 Oct 2010 22:04:02 -0000 Delivered-To: apmail-felix-dev-archive@felix.apache.org Received: (qmail 26005 invoked by uid 500); 9 Oct 2010 22:04:01 -0000 Mailing-List: contact dev-help@felix.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@felix.apache.org Delivered-To: mailing list dev@felix.apache.org Received: (qmail 25997 invoked by uid 99); 9 Oct 2010 22:04:01 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 09 Oct 2010 22:04:01 +0000 X-ASF-Spam-Status: No, hits=-2.3 required=10.0 tests=RCVD_IN_DNSWL_MED,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: local policy) Received: from [192.18.6.24] (HELO gmp-eb-inf-2.sun.com) (192.18.6.24) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 09 Oct 2010 22:03:53 +0000 Received: from fe-emea-10.sun.com (gmp-eb-lb-1-fe1.eu.sun.com [192.18.6.7] (may be forged)) by gmp-eb-inf-2.sun.com (8.13.7+Sun/8.12.9) with ESMTP id o99M3Vr3023281 for ; Sat, 9 Oct 2010 22:03:31 GMT MIME-version: 1.0 Content-transfer-encoding: 7BIT Content-type: text/plain; CHARSET=US-ASCII; format=flowed Received: from conversion-daemon.fe-emea-10.sun.com by fe-emea-10.sun.com (Sun Java(tm) System Messaging Server 7u2-7.04 64bit (built Jul 2 2009)) id <0LA100M00LY9S300@fe-emea-10.sun.com> for dev@felix.apache.org; Sat, 09 Oct 2010 23:03:06 +0100 (BST) Received: from [192.168.1.2] ([unknown] [117.192.132.168]) by fe-emea-10.sun.com (Sun Java(tm) System Messaging Server 7u2-7.04 64bit (built Jul 2 2009)) with ESMTPSA id <0LA100GKVML4GY30@fe-emea-10.sun.com>; Sat, 09 Oct 2010 23:03:06 +0100 (BST) Date: Sun, 10 Oct 2010 03:34:08 +0530 From: Sanjeeb Sahoo Subject: Re: [DISCUSS] Containerisms In-reply-to: <4CB0694B.8060608@gmail.com> Sender: Sanjeeb.Sahoo@Sun.COM To: dev@felix.apache.org Cc: Felix Meschberger Reply-to: Sahoo@Sun.COM Message-id: <4CB0E6D8.9060907@Sun.COM> References: <4CAF4A3F.4050406@gmail.com> <4CB0694B.8060608@gmail.com> User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.1.9) Gecko/20100423 Thunderbird/3.0.4 On Saturday 09 October 2010 06:38 PM, Felix Meschberger wrote: > Hi, > > On 08.10.2010 20:08, Guillaume Nodet wrote: > >> On Fri, Oct 8, 2010 at 18:43, Felix Meschberger wrote: >> >> >>> Hi, >>> >>> First of all: I agree with Richard in that we should at all cost prevent >>> containerisms. >>> >>> Second: I do not really understand what the problem is, that must be >>> solved with this containerism and which cannot be solved with regular >>> OSGi API. >>> >>> >> The real problem is to be able to discover resources in the bundle class >> space. For example, i want to know all resources in foo/bar/**/*.xml The >> OSGi API does not provide any way to do that atm and a lot of libraries use >> some custom things based on jars / file urls to actually iterate and >> discover those resources. >> > I wonder how you would be able scan the class space by pure ClassLoader > API, unless you check for the class loader being an URLClassLoader and > access the configured URLs.... > > But then: How about the Bundle.findeEntries ? > > I tend to agree that with some knowledge of how OSGi treats Bundle-ClassPath entries, one can implement scanning using Bundle APIs like the one pointed out by Felix and the code should run fine all frameworks. >> The problem is just about a way to actually do things. It seems in the >> enterprise world (JEE, middleware), we're more keen on bending the purity a >> bit to the benfit of being able to achieve our goals and we're also more >> keen on doing that for third party libraries. >> > Yeah, and I would be so undiplomatic to say, that this is at the heart > of today's J2EE mess .... > > IMHO you can bend the purity once, but you then will bend it twice, > three times, etc. Until end up in a complete mess ... > > My intepretation is that the J2EE world has realized this stituation, > starts embracing OSGi and along the lines of "getting stuff done by > bending purity if required" now starts and tries to do the same to the > OSGi specs. I am not really happy with this development .... > > But this is diverting this discussion ... > > I don't think Java EE specs are that bad that OSGi frameworks have to provide all sorts of nasty features to support Java EE APIs in an OSGi environment. I can't recall using any Felix feature to implement OSGi/EE specs in GlassFish project [1]. Thanks, Sahoo