Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [eclipselink-users] Re: rcp, osgi, and dynamic weaving

Hi Philipp,

There has been some work on providing a OSGI-service-based JPA approach. I suspect the kind of things you are asking about would be addressed in conjunction with that work. At the moment one of our external contributers has contributed some ideas and code.

https://bugs.eclipse.org/bugs/show_bug.cgi?id=226421

Please feel free to comment on the bug and add ideas, or to add other enhancement requests.

We are quite interested in integrating these ideas into EclipseLink, but I suspect that work will not occur until after we ship our initial JPA 2.0 implementation which is our development priority at the moment.

-Tom

Philipp Kursawe wrote:
On Wed, 07 Jan 2009 16:51:06 +0100, Tom Ware <tom.ware@xxxxxxxxxx> wrote:

In OSGi, dynamic weaving will be enabled if you have the org.eclipse.persistence.jpa.equinox.weaving and org.eclipse.persistence.jpa.equinox bundles deployed. If you do not have those bundles deployed, we cannot weave dynamically as we do not have the necessary classloader hooks.

If you are interested in getting EclipseLink running I'd love to help you out. The first thing we should do is figure out whether the issue you are seeing is related to weaving behavior, caching behavior, or OSGi. If the objects are weaved, in your debugger, you will see a number of new variables, with names starting with "_persistence". If you do not see those variables, there is something else going on.

Please let me know if you you'd like some help getting EclipseLink working,

Thanks for your offer Tom. I will come back to it when I start working on the app again. btw: Will EclipseLink offer dynamic adding/removing of Entities to the EntityManager during runtime? In OSGi I would like to add and remove new Entities to the running system, without restarting the app. Dynamic-JPA allows that to a certain degree. With Hibernate I wrote myself a little helper that recreated the EM each time the bundle configuration changed. But I was under the impression JPA would already do that, which it does not, to my surprise.

Phil
_______________________________________________
eclipselink-users mailing list
eclipselink-users@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/eclipselink-users


Back to the top