Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » EclipseLink » Eclipselink with OSGi
Eclipselink with OSGi [message #390032] Thu, 09 July 2009 13:26 Go to next message
Omar Diego Vera Ustariz is currently offline Omar Diego Vera UstarizFriend
Messages: 4
Registered: July 2009
Junior Member
Hi all,
I have some questions about Eclipselink JPA in OSGi:
The first one is about the architecture of JPA OSGi, which bundle from JPA
read the persistence.xml? And which bundle reads the persistence Unit
declared in the manifest? how the persistence Unit is handled by JPA? What
happens if I have several bundles publishing the same persistence Unit or
what happen if I have several bundles using the same data base with
different persistence units? A big picture would be ok to understand how
Eclipselink JPA works with OSGi. Does anybody knows where could I find
this information or someone knows how it works?

Thanks in advance,

-Omar Diego
Re: Eclipselink with OSGi [message #390035 is a reply to message #390032] Thu, 09 July 2009 20:05 Go to previous message
Shaun Smith is currently offline Shaun SmithFriend
Messages: 197
Registered: July 2009
Senior Member
Hi Omar,
,
> I have some questions about Eclipselink JPA in OSGi:
> The first one is about the architecture of JPA OSGi, which bundle from JPA
> read the persistence.xml?

org.eclipse.persistence.jpa contains the EclipseLink JPA implementation
and the persistence.xml is read by code in this bundle.

> And which bundle reads the persistence Unit
> declared in the manifest?

Same bundle.

> how the persistence Unit is handled by JPA? What
> happens if I have several bundles publishing the same persistence Unit or
> what happen if I have several bundles using the same data base with
> different persistence units?

As of the 1.1.2 release you can't have two persistence units with the same
name. This will be addressed in a future release. The same database issue
is no different in OSGi than outside.

>A big picture would be ok to understand how
> Eclipselink JPA works with OSGi. Does anybody knows where could I find
> this information or someone knows how it works?

I gave a presentation on this at OSGi DevCon last month. I don't go into
great detail as most people want to know how to use it rather than how it
works, but I do point out some of the implementation challenges and
solutions. You can find the slides on my blog:
http://onpersistence.blogspot.com/2009/06/osgi-persistence-s lides-from-osgi.html

--Shaun
Previous Topic:JPA and JSP
Next Topic:Primary Key and one-to-may relatuioship
Goto Forum:
  


Current Time: Thu Apr 25 23:50:48 GMT 2024

Powered by FUDForum. Page generated in 0.02644 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top