-
public interface LocalTransaction
The LocalTransaction defines a transaction demarcation interface for resource manager local transactions. Note that this interface is used for application level local transaction demarcation. The system contract level LocalTransaction interface (as defined in thejavax.resource.spi
package) is used by the container for local transaction management.A local transaction is managed internal to a resource manager. There is no external transaction manager involved in the coordination of such transactions.
A CCI implementation can (but is not required to) implement the LocalTransaction interface. If the LocalTransaction interface is supported by a CCI implementation, then the method
Connection.getLocalTransaction
should return a LocalTransaction instance. A component can then use the returned LocalTransaction to demarcate a resource manager local transaction (associated with the Connection instance) on the underlying EIS instance.- Since:
- 0.8
- Author:
- Rahul Sharma
- See Also:
Connection
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method and Description void
begin()
Begins a local transaction on an EIS instance.void
commit()
Commits the current local transaction and release all locks held by the underlying EIS instance.void
rollback()
Rollbacks the current resource manager local transaction.
-
-
-
Method Detail
-
begin
void begin() throws ResourceException
Begins a local transaction on an EIS instance.- Throws:
ResourceException
- Failed to begin a local transaction. Examples of error cases are:- Resource adapter internal or EIS-specific error
- Connection is already participating in a local or JTA transaction
-
commit
void commit() throws ResourceException
Commits the current local transaction and release all locks held by the underlying EIS instance.- Throws:
ResourceException
- Failed to commit a local transaction. Examples of error cases are:- Resource adapter internal or EIS-specific error
- Violation of integrity constraints, deadlock detection, communication failure during transaction completion, or any retry requirement
- Connection is participating in an active JTA transaction
- Invalid transaction context; commit operation invoked without an active transaction context
-
rollback
void rollback() throws ResourceException
Rollbacks the current resource manager local transaction.- Throws:
ResourceException
- Failed to rollback a local transaction. Examples of error cases are:- Resource adapter internal or EIS-specific error
- Connection is participating in an active JTA transaction
- Invalid transaction context; rollback operation invoked without an active transaction context
-
-
Nederlandse vertaling
U hebt gevraagd om deze site in het Nederlands te bezoeken. Voor nu wordt alleen de interface vertaald, maar nog niet alle inhoud.Als je me wilt helpen met vertalingen, is je bijdrage welkom. Het enige dat u hoeft te doen, is u op de site registreren en mij een bericht sturen waarin u wordt gevraagd om u toe te voegen aan de groep vertalers, zodat u de gewenste pagina's kunt vertalen. Een link onderaan elke vertaalde pagina geeft aan dat u de vertaler bent en heeft een link naar uw profiel.
Bij voorbaat dank.
Document heeft de 11/06/2005 gemaakt, de laatste keer de 18/08/2025 gewijzigd
Bron van het afgedrukte document:https://www.gaudry.be/nl/java-api-javaee-rf-javax/resource/cci/localtransaction.html
De infobrol is een persoonlijke site waarvan de inhoud uitsluitend mijn verantwoordelijkheid is. De tekst is beschikbaar onder CreativeCommons-licentie (BY-NC-SA). Meer info op de gebruiksvoorwaarden en de auteur.
Referenties
Deze verwijzingen en links verwijzen naar documenten die geraadpleegd zijn tijdens het schrijven van deze pagina, of die aanvullende informatie kunnen geven, maar de auteurs van deze bronnen kunnen niet verantwoordelijk worden gehouden voor de inhoud van deze pagina.
De auteur van deze site is als enige verantwoordelijk voor de manier waarop de verschillende concepten, en de vrijheden die met de referentiewerken worden genomen, hier worden gepresenteerd. Vergeet niet dat u meerdere broninformatie moet doorgeven om het risico op fouten te verkleinen.