javax.resource.cci

Interface Connection


  • public interface Connection
    A Connection represents an application-level handle that is used by a client to access the underlying physical connection. The actual physical connection associated with a Connection instance is represented by a ManagedConnection instance.

    A client gets a Connection instance by using the getConnection method on a ConnectionFactory instance. A connection can be associated with zero or more Interaction instances.

    Version:
    0.8
    Author:
    Rahul Sharma
    See Also:
    ConnectionFactory, Interaction
    • Method Detail

      • createInteraction

        Interaction createInteraction()
                               throws ResourceException
        Creates an Interaction associated with this Connection. An Interaction enables an application to execute EIS functions.
        Returns:
        Interaction instance
        Throws:
        ResourceException - Failed to create an Interaction
      • getLocalTransaction

        LocalTransaction getLocalTransaction()
                                      throws ResourceException
        Returns an LocalTransaction instance that enables a component to demarcate resource manager local transactions on the Connection. If a resource adapter does not allow a component to demarcate local transactions on an Connection using LocalTransaction interface, then the method getLocalTransaction should throw a NotSupportedException.
        Returns:
        LocalTransaction instance
        Throws:
        ResourceException - Failed to return a LocalTransaction instance because of a resource adapter error
        NotSupportedException - Demarcation of Resource manager local transactions is not supported on this Connection
        See Also:
        LocalTransaction
      • getMetaData

        ConnectionMetaData getMetaData()
                                throws ResourceException
        Gets the information on the underlying EIS instance represented through an active connection.
        Returns:
        ConnectionMetaData instance representing information about the EIS instance
        Throws:
        ResourceException - Failed to get information about the connected EIS instance. Error can be resource adapter-internal, EIS-specific or communication related.
      • close

        void close()
            throws ResourceException
        Initiates close of the connection handle at the application level. A client should not use a closed connection to interact with an EIS.
        Throws:
        ResourceException - Exception thrown if close on a connection handle fails.

        Any invalid connection close invocation--example, calling close on a connection handle that is already closed--should also throw this exception.

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/connection.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.