Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [eclipselink-users] EclipseLink in RCP

Hi Frans,

   OSGi includes a services model which allows you to decouple a service requirement from possible implementations.  Much like in Spring where you code against interfaces and then use Spring IoC to inject an implementation you select.  With OSGi services you can depend on a service interface and then obtain an implementation at runtime.  This can be done either programatically with a Service Tracker or in a more IoC way with Declarative Services or Spring DM (previously called Spring OSGi). You can find a number of articles on OSGi Services on the Eclipse Resources page in the OSGi category.

   In the EclipseLink OSGi proof of concept EclipseLink provides a JPA service.  You can "inject" it directly into your bundle or you can obtain it from javax.persistence.Persistence.  Behind the scenes, javax.persistence.Persistence is listening for provider services as the become available.  It just plays the role of a directory service.
   I know you can embed Equinox inside a servlet container but I wonder if you can embed Equinox inside a Swing app and have the core application functionality built on OSGi?


Frans Thamura wrote:

On Wed, Apr 2, 2008 at 2:16 AM, Shaun Smith <shaun.smith@xxxxxxxxxx> wrote:
For those interested in using EclipseLink in RCP, I've put a very simple example up on the wiki:  It assumes you're an RCP developer and just want some simple "getting started" info.  Once we get EclipseLink as OSGi bundles the approach described in this example will be obsolete--but it fills the gap for now.

we have a small project using swing, and  use hibernate :)

we are moving to injected version using spring

i think that is good if we can use the IoC between RCP and EclipseLink, or may be we can use not only RCP, Netbeans Platform, Swing or standalone SWT.

any idea to implement this?


_______________________________________________ eclipselink-users mailing list eclipselink-users@xxxxxxxxxxx


Shaun Smith | Principal Product Manager, TopLink | +1.905.502.3094
Oracle Fusion Middleware
110 Matheson Boulevard West, Suite 100
Mississauga, Ontario, Canada L5R 3P4

Back to the top