Skip to main content

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.

Jump to: navigation, search

Difference between revisions of "EclipseLink/Examples/JPA/GlassFishV3 Web Tutorial"

m
m (EclipseLink JPA Deployed on GlassFish 3 using Eclipse WTP)
Line 1: Line 1:
 
==EclipseLink JPA Deployed on GlassFish 3 using Eclipse WTP==
 
==EclipseLink JPA Deployed on GlassFish 3 using Eclipse WTP==
  
<font color="red">Note: This tutorial' is under construction for the next week as of 20080527.</font>
+
<font color="red">Note: This tutorial' is under construction for the next week as of 20080909.</font>
  
  
Line 18: Line 18:
  
 
===Prerequisites===
 
===Prerequisites===
*<font color="green">Install Eclipse EE</font>
+
===<font color="green">Install Eclipse EE</font>===
 
**I installed a clean version of Eclipse Ganymede M5 with all of WTP 3.0
 
**I installed a clean version of Eclipse Ganymede M5 with all of WTP 3.0
  

Revision as of 13:41, 9 September 2008

EclipseLink JPA Deployed on GlassFish 3 using Eclipse WTP

Note: This tutorial' is under construction for the next week as of 20080909.


If you want to get a small web application running quickly on GlassFish - the services provided by the Web Tools Project pluggin in the Eclipse IDE can take care of the deployment details and set the server into debug mode for you.

This basic example details how to use Eclipse to run/debug a minimum J2EE web application servlet using EclipseLink JPA as the persistence provider. The goal of this example is to detail the minimum steps needed to run EclipseLink inside GlassFish using the Eclipse IDE - at this point no presentation/controller layer such as JSF, Spring or Struts will be used beyond a basic HttpServlet so we can concentrate on the the integration layer JPA setup.

The DALI project was used to generate Entities from a schema with sequences already populated.

Development Environment

Hardware: Windows Vista SP1, HP Core2Quad, 2.4Ghz, 3Gb Ram

Software: Eclipse IDE for Java EE 3.4 M5 Ganymede (Feb 2008) with all 5 packages (DTP 1.6, EMF 2.4, GEF 3.4, WTP 3.0, XSD 2.4), Oracle 11g DB 11.1.0.6.0, Java JDK 1.5.0_11, GlassFish 3.0 TP2

This example will run fine with Eclipse 3.3 EE and any Database that EclipseLink supports.

Prerequisites

Install Eclipse EE

    • I installed a clean version of Eclipse Ganymede M5 with all of WTP 3.0
  • Install a Database
    • In this example I am using Oracle 11g, the table schemas have already been created manually and all entitity java classes have been generated using the Eclipse DALI tool.

All of Installation, deployment, JNDI setup, persistence.xml configuration, jpql query example - in progress ......

Back to the top