Issue Details (XML | Word | Printable)

Key: NUCCORE-782
Type: Improvement Improvement
Status: Closed Closed
Resolution: Duplicate
Priority: Minor Minor
Assignee: Unassigned
Reporter: Matthew T. Adams
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
DataNucleus Core

Add Atomikos JTA locator to core

Created: 11/Nov/11 05:54 PM   Updated: 09/Dec/11 03:13 PM   Resolved: 11/Nov/11 07:39 PM
Component/s: Transactions
Affects Version/s: 3.0.3
Fix Version/s: None

Severity: Proof of Concept


 Description  « Hide
This DN JTA locator for Atomikos TransactionsEssentials is working for me. Might want to add to package org.datanucleus.jta in core.

Java:

package org.example.org.datanucleus.jta;

import javax.transaction.TransactionManager;
import org.datanucleus.ClassLoaderResolver;
import com.atomikos.icatch.jta.UserTransactionManager;

public class AtomikosTransactionManagerLocator implements org.datanucleus.jta.TransactionManagerLocator
{
    public TransactionManager getTransactionManager(ClassLoaderResolver clr) {
        return new UserTransactionManager();
    }
}

plugin.xml:

<plugin id="org.example.org.datanucleus.jta.atomikos" name="DataNucleus Atomikos JTA plug-in" provider-name="org.example.org.datanucleus">
    <extension point="org.datanucleus.jta_locator">
        <cache name="atomikos" class-name="org.example.org.datanucleus.jta.AtomikosTransactionManagerLocator"/>
    </extension>
</plugin>


Andy Jefferson added a comment - 11/Nov/11 07:39 PM
Dup of NUCCORE-781

Andy Jefferson made changes - 11/Nov/11 07:39 PM
Field Original Value New Value
Status Open [ 1 ] Resolved [ 5 ]
Resolution Duplicate [ 3 ]
Andy Jefferson made changes - 09/Dec/11 03:13 PM
Status Resolved [ 5 ] Closed [ 6 ]