This chapter introduces tells how to expose JPA persistence units using RESTful Data services.
This chapter contains the following sections:
Use Case
Expose persistent data model and application logic over REST for the development of Thin Server Architecture (TSA) clients including HTML5/JavaScript and mobile technologies.
Solution
Use RESTful Data Services to expose entities using a RESTful service, without writing JAX-RS code.
Components
A Java EE application server with the following:
EclipseLink 2.4 or later.
Support for Java API for RESTful Web Services (JAX-RS) 1.0, for example the JAX-RS reference implementation, Jersey (see http://jersey.java.net/
).
A compliant Java Database Connectivity (JDBC) database, such as Oracle Database, Oracle Express, or MySQL