From dev-return-14300-apmail-openjpa-dev-archive=openjpa.apache.org@openjpa.apache.org Sat Nov 28 14:32:53 2009 Return-Path: Delivered-To: apmail-openjpa-dev-archive@www.apache.org Received: (qmail 28824 invoked from network); 28 Nov 2009 14:32:53 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 28 Nov 2009 14:32:53 -0000 Received: (qmail 61020 invoked by uid 500); 28 Nov 2009 14:32:53 -0000 Delivered-To: apmail-openjpa-dev-archive@openjpa.apache.org Received: (qmail 60962 invoked by uid 500); 28 Nov 2009 14:32:53 -0000 Mailing-List: contact dev-help@openjpa.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@openjpa.apache.org Delivered-To: mailing list dev@openjpa.apache.org Received: (qmail 60952 invoked by uid 99); 28 Nov 2009 14:32:53 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 28 Nov 2009 14:32:53 +0000 X-ASF-Spam-Status: No, hits=-2.6 required=5.0 tests=BAYES_00,HTML_MESSAGE X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of milinda.pathirage@gmail.com designates 209.85.216.181 as permitted sender) Received: from [209.85.216.181] (HELO mail-px0-f181.google.com) (209.85.216.181) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 28 Nov 2009 14:32:50 +0000 Received: by pxi11 with SMTP id 11so1657759pxi.9 for ; Sat, 28 Nov 2009 06:32:30 -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=YcI18JNxyYcLUtpMPwLBrNMap3uMPBDKQRLOl1dLC4s=; b=sVphCtFC2HNtDPX168DjtUh+IKtp3A5CX7ktopv8MK7IXRfFTh500YNbKByAjmvkJ8 fFhce3A78xLB1UUv8BO/5z8CUdkRHppUf+1uzh9vbC2BtJeN3krlDXy05eUSE8ZvptOA pJCcbDIXuZ6xMvopPVxS8SW7ixVeusEZcz8tw= 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=TgM9SP43ct+NeVLkxwGwzm+7PbBCHXlk1TeyZFi+jyCGmzZRsSp5cbjfVvEEc5DzNk ax0ggAQz30LzeuWLQN+Cohu8IWi8skdY6AZoZX0Cpbk9GXEDA/PiXvAK3BnfiNUtaYUP EE5CzfH+++VL8qqShAtg0Hpd4bYfo+NWoq5mI= MIME-Version: 1.0 Received: by 10.143.25.9 with SMTP id c9mr232619wfj.7.1259418749866; Sat, 28 Nov 2009 06:32:29 -0800 (PST) In-Reply-To: <22a059a60910291950s4486efecndb3fffb2e46db727@mail.gmail.com> References: <22a059a60910290230p34ffdc6ap31cd22be879ca28@mail.gmail.com> <22a059a60910290249m6033b54ha0e7a77d96b25550@mail.gmail.com> <89c0c52c0910291021g41142692y185e181dc1a1dfc3@mail.gmail.com> <22a059a60910291058vd570f26w561d8271a5fbb756@mail.gmail.com> <4AE9FFF5.5000602@apache.org> <22a059a60910291950s4486efecndb3fffb2e46db727@mail.gmail.com> Date: Sat, 28 Nov 2009 20:02:29 +0530 Message-ID: <22a059a60911280632w36e9c4a6m6453927d8798029@mail.gmail.com> Subject: Re: OSGi Aware Persistence Provider implementation From: Milinda Pathirage To: dev@openjpa.apache.org Content-Type: multipart/alternative; boundary=001636e1f73e3594fe04796f47a3 --001636e1f73e3594fe04796f47a3 Content-Type: text/plain; charset=ISO-8859-1 Hi all, I created JIRA[1] with the patch. Thanks Milinda [1] https://issues.apache.org/jira/browse/OPENJPA-1403 On Fri, Oct 30, 2009 at 8:20 AM, Milinda Pathirage < milinda.pathirage@gmail.com> wrote: > Hi Donald, > > Thanks for the tips. > > Milinda > > > On Fri, Oct 30, 2009 at 2:19 AM, Donald Woods wrote: > >> There is also the Aries project over in the Apache Incubator, which is >> proposing to develop several of the upcoming OSGi JavaEE RFCs, along with >> the Blueprint application environment. I'm hoping that some of the RFC 143 >> work is already done by that project and just waiting on the early access >> OSGi specs to be released before they can bring it into their svn repo and >> share it with us.... >> >> http://incubator.apache.org/projects/aries.html >> >> >> -Donald >> >> >> >> Milinda Pathirage wrote: >> >>> Thanks Kevin for your answers. I'm using OpenJPA in Apache ODE which runs >>> in >>> a OSGi environment(WSO2 Carbon platform). I tried OpenJPA 2.0, but there >>> were some issues with ODE's JPA queries. I'll try to port current >>> implementation to work with OpenJPA 2.0. I also think that it's better if >>> we >>> can add OSGi support for OpenJPA 2.0 because I saw there are fixes in >>> Geranimo JPA spec jar for OSGi related issues. I'll create a patch for >>> OSGi >>> related class loading issues and attach it to a JIRA. >>> >>> Thanks in advance, >>> Milinda >>> >>> >>> On Thu, Oct 29, 2009 at 10:51 PM, Kevin Sutter >>> wrote: >>> >>> Hi Milinda, >>>> Yes, there is some interest in allowing OpenJPA usage in an OSGi >>>> container >>>> environment. It's just not a "full time job" for any of us at the >>>> moment... >>>> >>>> Porting the JDK 6 changes back to the 1.3.x release might cause some >>>> concern >>>> for those users of the 1.3.x branch. Many of the changes would now >>>> require >>>> the use of JDK 6 and we didn't want to force this onto the JPA 1.0 usage >>>> community. Thus, we limited the change to trunk for our JPA 2.0 >>>> development >>>> [1]. >>>> >>>> Is there any reason why your experimentation and changes couldn't be >>>> targeted for the JPA 2.0 implementation? I think you will find our >>>> current >>>> M3 driver is quite solid, especially as it pertains to existing JPA 1.0 >>>> functionality. Thus, any current JPA 1.0 applications should run >>>> unchanged >>>> with a JPA 2.0 driver. >>>> >>>> Thanks, >>>> Kevin >>>> >>>> [1] >>>> >>>> >>>> http://n2.nabble.com/DISCUSS-Drop-build-support-for-Java-5-td2539470i20.html#a3554445 >>>> >>>> >>>> On Thu, Oct 29, 2009 at 4:49 AM, Milinda Pathirage < >>>> milinda.pathirage@gmail.com> wrote: >>>> >>>> Hi all, >>>>> I have another question. Is there any plan for fixing OpenJPA 1.3.x >>>>> compilation failures in JDK 1.6 >>>>> >>>>> Thanks >>>>> Milinda >>>>> >>>>> On Thu, Oct 29, 2009 at 3:00 PM, Milinda Pathirage < >>>>> milinda.pathirage@gmail.com> wrote: >>>>> >>>>> We are currently using OpenJPA 1.1.0 in equinox OSGi container by >>>>>> >>>>> making >>>> >>>>> it >>>>> >>>>>> a fragment of the bundle which use it to fix the issue of loading >>>>>> persistence.xml. Now we want to use OpenJPA in two different OSGi >>>>>> >>>>> bundles >>>> >>>>> and fragment hack will not work in this situation. Current 1.3.x >>>>>> >>>>> OpenJPA >>>> >>>>> implementation also doesn't support OSGi aware resource loading. We can >>>>>> >>>>> fix >>>>> >>>>>> this by following the method use by Eclipselink. In this method what >>>>>> we >>>>>> >>>>> have >>>>> >>>>>> to do is implement a OSGi aware Persistence Provider by extending the >>>>>> current Persistence Provider implementation and introduce bundle >>>>>> >>>>> activator >>>>> >>>>>> to register persistence provider service at bundle activation. This >>>>>> >>>>> will >>>> >>>>> not >>>>> >>>>>> break the existing functionality of OpenJPA in J2SE environment and >>>>>> >>>>> improve >>>>> >>>>>> the support for OSGi containers. >>>>>> >>>>>> Are there any plans to add OSGi support, if there any I would like to >>>>>> >>>>> help. >>>>> >>>>>> I'll provide a patch ASAP for this. >>>>>> >>>>>> Thanks >>>>>> Milinda >>>>>> >>>>>> -- >>>>>> Milinda Pathirage >>>>>> Senior Software Engineer & Product Manager WSO2 BPS; >>>>>> >>>>> http://wso2.org/bps >>>> >>>>> WSO2 Inc.; http://wso2.com >>>>>> E-mail: milinda@wso2.com, milinda.pathirage@gmail.com >>>>>> Web: http://mpathirage.com >>>>>> Blog: http://blog.mpathirage.com >>>>>> >>>>>> >>>>> >>>>> -- >>>>> Milinda Pathirage >>>>> Senior Software Engineer & Product Manager WSO2 BPS; >>>>> http://wso2.org/bps >>>>> WSO2 Inc.; http://wso2.com >>>>> E-mail: milinda@wso2.com, milinda.pathirage@gmail.com >>>>> Web: http://mpathirage.com >>>>> Blog: http://blog.mpathirage.com >>>>> >>>>> >>> >>> >>> > > > -- > Milinda Pathirage > Senior Software Engineer & Product Manager WSO2 BPS; http://wso2.org/bps > WSO2 Inc.; http://wso2.com > E-mail: milinda@wso2.com, milinda.pathirage@gmail.com > Web: http://mpathirage.com > Blog: http://blog.mpathirage.com > -- Milinda Pathirage Senior Software Engineer & Product Manager WSO2 BPS; http://wso2.org/bps WSO2 Inc.; http://wso2.com E-mail: milinda@wso2.com, milinda.pathirage@gmail.com Web: http://mpathirage.com Blog: http://blog.mpathirage.com --001636e1f73e3594fe04796f47a3--