Access a relational database with the Fuse ESB

WORK IN PROGRESS

Accessing a Relational Database with FUSE ESB

This use case describes how to access a relational database using OpenJpa . It demonstrates how to

  • Set up OpenJpa
  • Persist objects to the database
  • Retrieve persisted objects from the database

In the Logisticx demo we implement the persistence in support helper classes. These classes are part of the Order and Order Processor Service units in the Logisticx Demo.

The Java persistence API (JPA) is a standardised peristence API introduced as part of the Java EE 5 Platform. The JPA specification was first introduced as part of the JSR-220: EJB 3.0 with the goal of simplifying the EJB entity beans programming model. See the article by Aditi Das Understanding JPA for more information.

 

Walkthrough

To setup and be JPA Compliant you need to:

  1. Define Entity classes
  2. Define a persistent unit
  3. Define classes that will modify or search for entities
  4. Setup a Service unit and assembly to launch the Derby Network Server

Labels

 
(None)