Skip to main content

Blaise Doughan: Introducing EclipseLink JPA-RS

EclipseLink contains a component called JPA-RS that can be used to easily and automatically expose a persistence unit as RESTful service (that supports XML and JSON messages)... Using JPA-RS is a simple matter of packaging. We will create a WAR that contains our JPA model in a JAR, the JPA-RS JAR, and a simple session bean to initialize our JPA model. For this example I am using a promoted build of GlassFish 4.0 that contains EclipseLink 2.5...