Skip to main content
Jump to: navigation, search

EclipseLink/Release/2.4.0/JPA-RS/Eclipse

Configure Eclipse Environment

Now you can configure Eclipse to run the MySports example.

  1. Add a variable named eclipselink_2.3_jar with the value <ECLIPSELINK OSGI BUNDLE>\org.eclipse.persistence.core_2.3.0.<BUILD>.jar.
    This is used for the javaagent of the test project. You can add this variable by creating a String Substitution variable, as shown here:
    Mysports variable.png
  2. Obtain the three example projects from the EclipseLink SVN repository:
    Note: If you use the Eclipse Team Provider for SVN plugin (http://www.eclipse.org/subversive/downloads.php) Eclipse will can import the example projects.
  3. Start the Derby server. The GlassFish installation includes a Derby instance that can be used, in the <GLASSFISH_HOME>\javadb\ folder.
  4. Import the EclipseLink MySports projects into Eclipse.
  5. Create a new Derby connection profile. Use the same JDBC Connection Properties that you used when creating the GlassFish connection pool.
  6. Add the Connectivity Driver Definition for the Derby database to the project.
    Mysports derbyclientjar.png
  7. Edit the eclipselink-examples-mysports.properties file to match your database connection information.
    Mysports properties.png

Running the Example

Now, you're ready to run the MySports example.

  1. Run the MySports AllTests launch target. This will create the database tables and prepare an initial population
  2. Run the MySports Admin application
  3. Run the MySports application

Back to the top