Deploying a JPA application to the Liberty profile

To enable the Liberty profile to support an application that uses the Java™ Persistence API (JPA), you add the jpa-2.0 feature to the server.xml file. You also need to define persistence contexts and persistence units, and configure access to the entity manager and entity manager factory.

Before you begin

This task assumes that you have created a Liberty profile server, on which you want to deploy an application that uses JPA. See Creating a Liberty profile server manually.

About this task

The jpa-2.0 feature provides support for applications that use application-managed and container-managed JPA written to the JPA 2.0 specification. The support is built on Apache OpenJPA with extensions to support the container-managed programming model.

Procedure


Icon that indicates the type of topic Task topic

Terms and conditions for information centers | Feedback


Timestamp icon Last updated: Wednesday, 22 May 2013
http://www14.software.ibm.com/webapp/wsbroker/redirect?version=phil&product=was-nd-mp&topic=twlp_dep_jpa
File name: twlp_dep_jpa.html