Notice: this Wiki will be going read only early in 2024 and edits will no longer be possible. Please see: https://gitlab.eclipse.org/eclipsefdn/helpdesk/-/wikis/Wiki-shutdown-plan for the plan.
Difference between revisions of "EclipseLink/Examples/OSGi/Equinox Byte Code Weaving"
< EclipseLink | Examples | OSGi
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 (→Under Construction) |
||
Line 1: | Line 1: | ||
=Under Construction= | =Under Construction= | ||
+ | = Overview = | ||
+ | |||
+ | = Setup = | ||
* Create a root folder for the example, we'll refer to it as HOME. | * Create a root folder for the example, we'll refer to it as HOME. | ||
+ | == Required Bundles == | ||
* Download Equinox [http://download.eclipse.org/equinox/| 3.5] to obtain the following bundles and place them in HOME\plugins. | * 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.equinox.common | ||
Line 8: | Line 12: | ||
* From an Eclipse 3.5 install's plugins folder copy the following bundle to HOME\plugins: | * From an Eclipse 3.5 install's plugins folder copy the following bundle to HOME\plugins: | ||
** org.eclipse.update.configurator | ** org.eclipse.update.configurator | ||
− | * [http://www.eclipse.org/eclipselink/downloads/index.php| Download EclipseLink 1.1.2] (or above) and place the bundles | + | * Download the Apache Derby database bundle ''org.apache.derby'' from the [http://download.eclipse.org/tools/orbit/downloads/| Eclipse Orbit download page] and place it in HOME\plugins. The Orbit bundle does not contain the client driver so we'll use an embedded database in this example. |
+ | * [http://www.eclipse.org/eclipselink/downloads/index.php| Download EclipseLink 1.1.2] (or above) and place the bundles into HOME\plugins | ||
+ | |||
+ | == Equinox Configuration == | ||
* Create the file config.ini in HOME\configuration with the contents: | * Create the file config.ini in HOME\configuration with the contents: | ||
− | + | <pre> | |
+ | osgi.bundles.defaultStartLevel=6 | ||
eclipse.ignoreApp=true | eclipse.ignoreApp=true | ||
osgi.noShutdown=true | osgi.noShutdown=true | ||
− | |||
osgi.framework.extensions=org.eclipse.persistence.jpa.equinox.weaving | osgi.framework.extensions=org.eclipse.persistence.jpa.equinox.weaving | ||
− | |||
− | |||
− | |||
osgi.bundles= \ | osgi.bundles= \ | ||
org.eclipse.equinox.common@2:start, \ | org.eclipse.equinox.common@2:start, \ | ||
Line 29: | Line 33: | ||
org.eclipse.persistence.jpa.equinox, \ | org.eclipse.persistence.jpa.equinox, \ | ||
org.eclipse.persistence.example.equinox.weaving@start, \ | org.eclipse.persistence.example.equinox.weaving@start, \ | ||
− | + | org.apache.derby | |
+ | </pre> |
Revision as of 10:42, 21 May 2009
Under Construction
Overview
Setup
- Create a root folder for the example, we'll refer to it as HOME.
Required Bundles
- Download 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 system. The 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
- Download the Apache Derby database bundle org.apache.derby from the Eclipse Orbit download page and place it in HOME\plugins. The Orbit bundle does not contain the client driver so we'll use an embedded database in this example.
- Download EclipseLink 1.1.2 (or above) and place the bundles into HOME\plugins
Equinox Configuration
- Create the file config.ini in HOME\configuration with the contents:
osgi.bundles.defaultStartLevel=6 eclipse.ignoreApp=true osgi.noShutdown=true osgi.framework.extensions=org.eclipse.persistence.jpa.equinox.weaving 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, \ org.apache.derby