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 <[email protected]> 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 < > [email protected]> 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 < > > [email protected]> 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: [email protected], [email protected] > > > Web: http://mpathirage.com > > > Blog: http://blog.mpathirage.com > > > > > > > > > > > -- > > Milinda Pathirage > > Senior Software Engineer & Product Manager WSO2 BPS; http://wso2.org/bps > > WSO2 <http://wso2.org/bps%0AWSO2> Inc.; http://wso2.com > > E-mail: [email protected], [email protected] > > 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: [email protected], [email protected] Web: http://mpathirage.com Blog: http://blog.mpathirage.com
