You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@openjpa.apache.org by Harald Wellmann <Ha...@multi-m.de> on 2010/09/17 15:04:06 UTC

Status of OSGi Support

I'm currently trying to make OpenJPA work in an OSGi context (using Equinox).
Searching the OpenJPA mailing list archives, I found two pointers to OPS4J
and to Apache Aries, both of which only work partially for my application.

The only solution I've found so far is based on buddy policies, which is
Equinox specific and less than optimal.

I've identified four or five separate issues which should be relatively easy
to fix, but before going into the details, I'm just wondering whether OSGi
is on the agenda of the OpenJPA community at all and what is the best place
to discuss the OSGi related issues in detail - this list, the Developer
list, or JIRA?

Best regards,

Harald
-- 
View this message in context: http://openjpa.208410.n2.nabble.com/Status-of-OSGi-Support-tp5542628p5542628.html
Sent from the OpenJPA Users mailing list archive at Nabble.com.

Re: Status of OSGi Support

Posted by Donald Woods <dw...@apache.org>.
Hi Harald, the OpenJPA users list would be the right starting point to
discuss OSGi.  Then, we can decide if JIRAs need to be opened.

Can you start by describing your scenario?  Would also be interesting to
know what in Apache Aries is not working for you or missing...


-Donald


On 9/17/10 9:04 AM, Harald Wellmann wrote:
> 
> I'm currently trying to make OpenJPA work in an OSGi context (using Equinox).
> Searching the OpenJPA mailing list archives, I found two pointers to OPS4J
> and to Apache Aries, both of which only work partially for my application.
> 
> The only solution I've found so far is based on buddy policies, which is
> Equinox specific and less than optimal.
> 
> I've identified four or five separate issues which should be relatively easy
> to fix, but before going into the details, I'm just wondering whether OSGi
> is on the agenda of the OpenJPA community at all and what is the best place
> to discuss the OSGi related issues in detail - this list, the Developer
> list, or JIRA?
> 
> Best regards,
> 
> Harald

Re: Status of OSGi Support

Posted by Harald Wellmann <Ha...@multi-m.de>.
Hi Kevin,


Kevin Sutter wrote:
> 
> Yes, the OpenJPA community is interested in OSGi.  
> 

Glad to hear that.


Kevin Sutter wrote:
> 
> It sounds like you are very interested in getting OpenJPA working with
> Equinox, so hopefully you are also interested in helping to provide
> testcases and verify patches.
> 

Sure, I'll do what I can to make OpenJPA even better, time permitting. I
have recently migrated a Java EE 6 application from Hibernate to OpenJPA due
to a number of JPA 2.0 features that do not work in Hibernate.

Now I'm migrating an OSGi application from Eclipselink to OpenJPA for the
same reason. Eclipselink works on OSGi out of the box, which is its USP in
my opinion, but again due to some bugs which are blockers for my
application, I've decided to move to OpenJPA with its more robust JPA 2.0
support, and maybe resort to brute force like DynamicImport-Package to make
it work on OSGi.

But of course I'd much rather see OpenJPA to take the lead from Eclipselink
by working seamlessly on OSGi in one of its coming releases.

In the meantime, after some discussion on the Aries User mailing list, I've
got a simple example working by just adding the JPA and JNDI services from
Aries, but none of the Blueprint and application model stuff.

Once you know what to do, it's rather easy to set up - I'm planning to write
a how-to in my blog and post the link here and on the Aries mailing list for
review, which might serve as input for a new section in the OpenJPA
documentation.

My real application is more complex and I'm still analyzing a couple of
problems. I'll post these issues one by one when I see a little clearer.

Best regards,

Harald

-- 
View this message in context: http://openjpa.208410.n2.nabble.com/Status-of-OSGi-Support-tp5542628p5543817.html
Sent from the OpenJPA Users mailing list archive at Nabble.com.

Re: Status of OSGi Support

Posted by Kevin Sutter <kw...@gmail.com>.
Hi Harald,
Yes, the OpenJPA community is interested in OSGi.  As you can tell, due to
the Apache association, we have been working more with the Aries project
[1].  But, playing well with Equinox would also be of interest.

I'm going to explicitly copy Donald on this note since he has been active
with our OSGi integration.

We can continue to use the Users mailing list for now.  Once specific issues
are determined, then we will definitely need JIRAs to address those issues.
It sounds like you are very interested in getting OpenJPA working with
Equinox, so hopefully you are also interested in helping to provide
testcases and verify patches.

Thanks for your interest in OpenJPA.

Kevin

[1]  http://openjpa.apache.org/openjpa-200.html

On Fri, Sep 17, 2010 at 8:04 AM, Harald Wellmann <Harald.Wellmann@multi-m.de
> wrote:

>
> I'm currently trying to make OpenJPA work in an OSGi context (using
> Equinox).
> Searching the OpenJPA mailing list archives, I found two pointers to OPS4J
> and to Apache Aries, both of which only work partially for my application.
>
> The only solution I've found so far is based on buddy policies, which is
> Equinox specific and less than optimal.
>
> I've identified four or five separate issues which should be relatively
> easy
> to fix, but before going into the details, I'm just wondering whether OSGi
> is on the agenda of the OpenJPA community at all and what is the best place
> to discuss the OSGi related issues in detail - this list, the Developer
> list, or JIRA?
>
> Best regards,
>
> Harald
> --
> View this message in context:
> http://openjpa.208410.n2.nabble.com/Status-of-OSGi-Support-tp5542628p5542628.html
> Sent from the OpenJPA Users mailing list archive at Nabble.com.
>