O'Reilly logo

Apache Karaf Cookbook by Heath Kesler, Johan Edstrom, Jamie Goodyear, Achim Nierbeck

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Building a project with a persistence layer and transaction support for deployment in Karaf

Transaction support for your JPA-persisted data can be simply added by introducing Apache Aries JTA modules to your project. The JTA components provide a transaction manager that coordinates data storage and retrieval.

In the Building a project with a persistence layer for deployment in Karaf recipe, we learned how to use JPA and OpenJPA to build a simple application that persists recipes to a database using a RecipeBookService class. In this recipe, we'll add container-based transaction management via JTA.

Getting ready

The ingredients of this recipe include the Apache Karaf distribution kit, access to JDK, and Internet connectivity. Sample code for this ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required