[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Newsgroup Home]
[news.eclipse.rt.eclipselink] Re: rcp, osgi, and dynamic weaving

Hi Ted,

I'm just back from vacation and will be investing some effort in documenting our OSGi and RCP support. You're right, the POC docs are out of date.

But as you can see in the bug you referenced, we do have dynamic weaving working for some basic use cases with Equinox OSGi. We have lots of work to do here to make it "all singing and all dancing" but the basics are working. The implementation leverages the Equinox AdaptorHook[1] framework and is service based. This fits nicely with "generic" OSGi applications but not so well with RCP. I think the problem is just in our lack of expertise with RCP and probably not insurmountable. Essentially we need to have EclipseLink examine a persistence unit before the Entity classes are loaded so that we can register a weaving service that will weave them as they are loaded. I played around with getting this to work in an RCP app at one point but had trouble getting the services to start before the RCP main program was invoked. If you can explain how to setup an RCP app with services running properly before the Application is invoked then we can make some progress on this.

Can anyone offer any advice? Is it totally trivial and in my quick attempt I just didn't get it?

--Shaun


[1] http://wiki.eclipse.org/index.php/Adaptor_Hooks