These instructions have been tested with JOTM 2.0.10.
Step 1: Copy the jars
Assuming you have successfully downloaded JOTM, copy the following jars to jetty6's
Step 2: Configure CAROL
In your jetty6 installation, create the file
resources/carol.properties and edit it's contents to contain these lines:
Without this step, CAROL will assume control of JNDI from jetty6 and
java:comp/env will not be set up correctly.
Step 3: Configure the transaction manager and datasources in jetty6
You need to register an XA transaction manager and XA aware DataSources. There is more information about jetty6's JNDI facilities that you may find useful. Here are the snippets for your jetty config file. In this example, we will configure a Derby JDBC driver, but of course you can substitute your own.
You MUST wrap the
StandardXADataSource in a
StandardXADataSource does not use the XAConnection if you call
getConnection(), thus connections won't be involved in the XA transaction.