Author: Gytis Trikleris; Level: Intermediate; Technologies: JTA, CDI, JPA
This example demonstrates how to use new JTA 1.2 annotations and CDI beans with Hibernate in standalone application.
This example consists of two separate use cases: standalone JTA 1.2 only and standalone JTA 1.2 with Hibernate. org.jboss.narayana.jta package contains classes which demonstrates usage of JTA only. org.jboss.narayana.jta.jpa package demonstrates both Hibernata and JTA.
All you need to build this project is Java 7.0 (Java SDK 1.7) or better and Maven 3.0 or better.
-
Open a command line and navigate to the root directory of this quickstart.
-
Execute quickstart:
mvn clean test