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
openjpafeature installs thejpafeature with the Apache OpenJPA as persistence engine:
karaf@root()> feature:install openjpa
-
Hibernate. The
hibernatefeature installs thejpafeature with the Hibernate persistence engine:
karaf@root()> feature:install hibernate
-
EclipseLink. The
eclipselinkfeature installs thejpafeatue with the ElipseLink persistence engine:
karaf@root()> feature:install eclipselink