Persistence (JPA)

Apache Karaf provides JPA persistence providers (such as Apache OpenJPA) to be easy to use (in a OSGi way) and provide container managed persistence for applications (using Blueprint).

Apache Karaf embeds Aries JPA, providing a very easy way to develop applications that use JPA persistence.

See the developer guide for details about developing applications that use JPA.

Persistence engine features

Apache Karaf provides a set of ready to use persistence engine features:

  • Apache OpenJPA. The openjpa feature installs the jpa feature with the Apache OpenJPA as persistence engine:

karaf@root()> feature:install openjpa
  • Hibernate. The hibernate feature installs the jpa feature with the Hibernate persistence engine:

karaf@root()> feature:install hibernate
  • EclipseLink. The eclipselink feature installs the jpa featue with the ElipseLink persistence engine:

karaf@root()> feature:install eclipselink