+

Search Tips   |   Advanced Search

Deploy a JPA application to the Liberty profile

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

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

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.


Subtopics


Parent topic: Deploy applications to the Liberty profile

Reference:
Apache OpenJPA javadoc

  • Liberty features