Difference between revisions of "EclipseLink/Examples/OSGi/Equinox Byte Code Weaving"

From Eclipsepedia

Jump to: navigation, search
m (New page: =Under Construction= * Create a root folder for the example, we'll refer to it as HOME. * Download Equinox [http://download.eclipse.org/equinox/| 3.5] to obtain the following bundles and ...)
 
m
 
(34 intermediate revisions by one user not shown)
Line 1: Line 1:
=Under Construction=
+
The OSGi support provided by EclipseLink is deprecated and has been replaced by the Gemini JPA projectSee the [[Gemini/JPA/Documentation|Gemini documentation]] for examples.
 
+
* Create a root folder for the example, we'll refer to it as HOME.
+
* Download Equinox [http://download.eclipse.org/equinox/| 3.5] to obtain the following bundles and place them in HOME\plugins.
+
** org.eclipse.equinox.common
+
** org.eclipse.osgi
+
* From the Equinox download page, download the launcher appropriate for your operating systemThe launcher comes in two parts: a bundle and a native platform library.  Copy both the launcher jar and native library folder to HOME\plugins.
+
* From an Eclipse 3.5 install's plugins folder copy the following bundle to HOME\plugins:
+
** org.eclipse.update.configurator
+
* [http://www.eclipse.org/eclipselink/downloads/index.php| Download EclipseLink 1.1.2] (or above) and place the bundles in to HOME\plugins
+
* Create the file config.ini in HOME\configuration with the contents:
+
 
+
 
+
eclipse.ignoreApp=true
+
osgi.noShutdown=true
+
# Install the byte code weaving hooks as a framework extension
+
osgi.framework.extensions=org.eclipse.persistence.jpa.equinox.weaving
+
# We need to start javax.persistence, then o.e.p.jpa, before
+
# 'application code' is run.  We also need tos
+
osgi.bundles.defaultStartLevel=6
+
osgi.bundles= \
+
org.eclipse.equinox.common@2:start, \
+
org.eclipse.update.configurator@3:start, \
+
javax.persistence@4:start, \
+
org.eclipse.persistence.jpa@5:start, \
+
org.eclipse.persistence.antlr, \
+
org.eclipse.persistence.asm, \
+
org.eclipse.persistence.core, \
+
org.eclipse.persistence.jpa.equinox, \
+
org.eclipse.persistence.example.equinox.weaving@start, \
+
shaun.derbyclient
+

Latest revision as of 13:46, 24 October 2012

The OSGi support provided by EclipseLink is deprecated and has been replaced by the Gemini JPA project. See the Gemini documentation for examples.