Book Image

Apache Karaf Cookbook

By : Jamie Goodyear, Johan Edstorm, Achim Nierbeck, Heath J Kesler
Book Image

Apache Karaf Cookbook

By: Jamie Goodyear, Johan Edstorm, Achim Nierbeck, Heath J Kesler

Overview of this book

Table of Contents (17 chapters)
Apache Karaf Cookbook
Credits
About the Authors
About the Reviewers
www.PacktPub.com
Preface
Index

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 command with the feature's name as follows:

karaf@root()>  feature:install transaction

We can verify the installation by executing the list –t 0 | grep -i transaction command, which will list all installed transaction components and...