Installing Apache Aries JTA modules in Apache Karaf

Applications often require transaction management alongside the JPA. This is accomplished by including the JTA into the Karaf container.

Getting ready

The ingredients of this recipe include the Apache Karaf distribution kit, access to JDK, and Internet connectivity. Generally, you'll also need to perform the steps outlined in the Installing OpenJPA modules in Apache Karaf recipe.

How to do it…

Thanks to Apache Karaf's feature system, installing JTA is a very simple one-step process.

Note

Why do we not have to add the feature URL? This is because Apache Karaf's standard distribution includes the JTA feature URL by default.

Installing the JTA feature into Karaf

We install a feature by executing the feature:install ...

Get Apache Karaf Cookbook now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.