Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Migrated to Confluence 5.3

...

These instructions are for Atomikos 3.3 onwards, and have been verified against Atomikos 3.4.2. If you are using an older version, see #Configuration for older versions for additional instructions (for Atomikos versions 2.10, 3.0.1).

...

Copy the following into your jetty config file:

Code Block
xml
xml
titleAtomikos 3.xxml
<New id="tx" class="org.mortbay.jetty.plus.naming.Transaction">
 <Arg>
   <New class="com.atomikos.icatch.jta.UserTransactionImp"/>
 </Arg>
</New>

...

Here's an example of using Atomikos with a DataSource that implements javax.sql.XADataSource:

Code Block
xml
xml
titleAtomikos 3.3.xxml
  <New id="mydatasource" class="org.mortbay.jetty.plus.naming.Resource">
    <Arg><Ref id='wac'/></Arg>
    <Arg>jdbc/mydatasource</Arg>
    <Arg>
      <New class="com.atomikos.jdbc.AtomikosDataSourceBean">
        <Set name="xaDataSourceClassName">org.apache.derby.jdbc.EmbeddedXADataSource</Set>
        <Set name="xaProperties">
          <New class="java.util.Properties">
            <Call name="setProperty"><Arg>databaseName</Arg><Arg>testdb</Arg></Call>
            <Call name="setProperty"><Arg>createDatabase</Arg><Arg>true</Arg></Call>
          </New>
        </Set>
        <Set name="UniqueResourceName">mydatasource</Set>
      </New>
    </Arg>
  </New>

...

Section
Column
Code Block
xml
xml
titleAtomikos 2.10xml
<New id="tx" class="org.mortbay.jetty.plus.naming.Transaction">
 <Arg>
   <New class="com.atomikos.icatch.jta.J2eeUserTransaction"/>
 </Arg>
</New>
Column
Code Block
xml
xml
titleAtomikos 3.0.1xml
<New id="tx" class="org.mortbay.jetty.plus.naming.Transaction">
 <Arg>
   <New class="com.atomikos.icatch.jta.UserTransactionImp"/>
 </Arg>
</New>

...

Contact the core Jetty developers at www.webtide.com
private support for your internal/customer projects ... custom extensions and distributions ... versioned snapshots for indefinite support ... scalability guidance for your apps and Ajax/Comet projects ... development services from 1 day to full product delivery