javax.resource.cci

Interface LocalTransaction


  • 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 the javax.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 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

Deutsche Übersetzung

Sie haben gebeten, diese Seite auf Deutsch zu besuchen. Momentan ist nur die Oberfläche übersetzt, aber noch nicht der gesamte Inhalt.

Wenn Sie mir bei Übersetzungen helfen wollen, ist Ihr Beitrag willkommen. Alles, was Sie tun müssen, ist, sich auf der Website zu registrieren und mir eine Nachricht zu schicken, in der Sie gebeten werden, Sie der Gruppe der Übersetzer hinzuzufügen, die Ihnen die Möglichkeit gibt, die gewünschten Seiten zu übersetzen. Ein Link am Ende jeder übersetzten Seite zeigt an, dass Sie der Übersetzer sind und einen Link zu Ihrem Profil haben.

Vielen Dank im Voraus.

Dokument erstellt 11/06/2005, zuletzt geändert 18/08/2025
Quelle des gedruckten Dokuments:https://www.gaudry.be/de/java-api-javaee-rf-javax/resource/cci/localtransaction.html

Die Infobro ist eine persönliche Seite, deren Inhalt in meiner alleinigen Verantwortung liegt. Der Text ist unter der CreativeCommons-Lizenz (BY-NC-SA) verfügbar. Weitere Informationen auf die Nutzungsbedingungen und dem Autor.

Referenzen

  1. Zeigen Sie - html-Dokument Sprache des Dokuments:fr Manuel PHP : https://docs.oracle.com

Diese Verweise und Links verweisen auf Dokumente, die während des Schreibens dieser Seite konsultiert wurden, oder die zusätzliche Informationen liefern können, aber die Autoren dieser Quellen können nicht für den Inhalt dieser Seite verantwortlich gemacht werden.
Der Autor dieser Website ist allein dafür verantwortlich, wie die verschiedenen Konzepte und Freiheiten, die mit den Nachschlagewerken gemacht werden, hier dargestellt werden. Denken Sie daran, dass Sie mehrere Quellinformationen austauschen müssen, um das Risiko von Fehlern zu reduzieren.