This topic applies to WebSphere Application Server Liberty V8.5.5.9 and earlier. For the latest Liberty topics, see the WebSphere Application Server Liberty documentation.

Deploying a JPA application to Liberty

To enable Liberty to support an application that uses the Java™ Persistence API (JPA), you add the jpa-2.0 or jpa-2.1 feature to the server.xml file, depending on which specification level you need. 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 server, on which you want to deploy an application that uses JPA. See Creating a Liberty server manually.

About this task

[8.5.5.6 or later]There are two JPA features available in Liberty:
  • 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.
  • The jpa-2.1 feature provides support for applications that use application-managed and container-managed JPA written to the JPA 2.1 specification. The support is built on EclipseLink

For information about developing JPA applications by using WebSphere Developer Tools, see Developing JPA applications.

Procedure


Icon that indicates the type of topic Task topic



Timestamp icon Last updated: Tuesday, 12 December 2017
http://www14.software.ibm.com/webapp/wsbroker/redirect?version=phil&product=was-libcore-mp&topic=twlp_dep_jpa
File name: twlp_dep_jpa.html