Skip to content


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
The codebase for the narayana project
Java C++ Other
Failed to load latest commit information.
ArjunaCore [JBTM-2341] More explanation of the meaning of the averageCommit time…
ArjunaJTA Fixed JBTM-2350 - CDI Transactional interceptors are not thread safe.…
ArjunaJTS Added a unit test to verify that setting SupportInterposedSynchroniza…
STM Updated to 5.0.5.Final-SNAPSHOT
XTS Updated to 5.0.5.Final-SNAPSHOT
antbuildsystem import from r37839
blacktie JBTM-2090 Update to ignore the SIGPIPE when sending the messages in H…
code-coverage [JBTM-2316] missing code coverage for ArjunaJTS/jtax and ArjunaJTA/jdbc
common Updated to 5.0.5.Final-SNAPSHOT
compensations JBTM-2353 Compensation handler should not throw exception, if there i…
ext Updated to 5.0.5.Final-SNAPSHOT
narayana-full Updated to 5.0.5.Final-SNAPSHOT
osgi Updated to 5.0.5.Final-SNAPSHOT
qa Updated IDE files
rts JBTM-2356. RTS integration recovery test
scripts [JBTM-2364] Benchmark profiler support
tools Updated to 5.0.5.Final-SNAPSHOT
txbridge Updated to 5.0.5.Final-SNAPSHOT
txframework JBTM-2222 Do not move the GAV for txframework
.gitignore ignore temporary files Added some notes on where to get help from
build-release-pkgs.xml JBTM-2292 Updated to handle the awestruct executable
build.bat Updated to 5.0.4.Final JBTM-2260 Update to detect the CentOS 7 and set the right bpa
copyright.txt import from r37839
pom.xml Merge pull request #819 from tomjenkinson/JBTM-2222


Getting help

If you need help with using Narayana, please visit our forums at:

If you think you have found an error in our code, please raise an issue over on:

If you would like to contribute a pull request to help the project out, please sign our CLA over here: (the project is JBoss Transactions)


To build Narayana you should have installed: Java 1.7.0 or greater

When building on Mac OS make sure that JAVA_HOME is set to use JDK 1.7:

export JAVA_HOME=`/usr/libexec/java_home -v 1.7` 

Building Naryana

To build Narayana you should call:

./build.[sh|bat] <maven_goals, default is install>

To use this wrapper to build an individual module (say arjuna) you would type:

./build.[sh|bat] clean install -pl :arjuna

If you are building the "community" profile and are using a different maven installation to the one provided in tools/maven you need to make sure you have the following options:


The distribution is then available in: ./narayana-full/target/

Alternatively, the uber jar for JacORB is available here: ./ArjunaJTS/narayana-jts-jacorb/target/narayana-jts-jacorb-.jar

The uber jar for the JDK ORB is available here: ./ArjunaJTS/narayana-jts-idlj/target/narayana-jts-idlj-.jar

The user jar for local JTA is here: ./ArjunaJTA/narayana-jta/target/narayana-jta-.jar

If you just need the facilities provided by ArjunaCore: ./ArjunaCore/arjunacore/target/arjunacore-.jar

Code Coverage Testing

./build.[sh|bat] -PcodeCoverage (the output is in ${}/coverage.html)

Build QA

cd qa/
ant -Ddriver.url=file:///home/hudson/dbdrivers get.drivers dist
ant -f run-tests.xml ci-tests

Now The Gory Details.

Each module contains a set of maven build scripts, which chiefly just inherits and selectively overrides the parent pom.xml Understanding this approach requires some knowledge of maven's inheritance.

Top level maven builds always start from scratch. Individual module builds on the other hand are incremental, such that you may rebuild a single module by traversing into its directory and running 'mvn', but only if you have first built any pre-req modules e.g. via a parent build.

In addition to driving the build of individual modules, the build files in the bundles directories (ArjunaCore, ArjunaJTA, ArjunaJTS) contain steps to assemble the release directory structure, including docs, scripts, config files and other ancillaries. These call each other in some cases, as JTS is largely a superset of JTA and JTA in turn a superset of Core.

3rd party dependency management is done via maven. Note that versions of most 3rd party components are resolved via the JBossAS component-matrix pom.xml, even when building standalone releases. The version of JBossAS to use is determined by the top level pom.xml You may need to set up maven to use the repositories:

Maven is provided in the tools/maven section, though later versions of this may work. Download locations are:

A handful of unit tests build and run as part of the normal build. Most test coverage is in the form of integration tests which reside in the qa/ directory. These are built but not run automatically. See qa/README.txt for usage.

Building specific components

Narayana supports building specific components using Maven build options.

ArjunaCore - ./build.[sh|bat] -am -pl :arjunacore NarayanaJTA - ./build.[sh|bat] -am -pl :narayana-jta NarayanaJTS (jacorb) - ./build.[sh|bat] -am -pl :narayana-jts-jacorb -Didlj-disabled=true NarayanaJTS (idlj) - ./build.[sh|bat] -am -pl :narayana-jts-idlj -Djacorb-disabled=true NarayanaJTS (ibmorb) - ./build.[sh|bat] -am -pl :narayana-jts-ibmorb -Dibmorb-enabled=true (requires IBM jdk) XTS - ./build.[sh|bat] -am -pl :jboss-xts STM - ./build.[sh|bat] -am -pl :stm

Something went wrong with that request. Please try again.