Uses of Class
jakarta.resource.ResourceException
-
Packages that use ResourceException Package Description jakarta.resource The jakarta.resource package is the top-level package for the Jakarta™ Connectors specification.jakarta.resource.cci The jakarta.resource.cci package contains API specification for the Common Client Interface (CCI).jakarta.resource.spi The jakarta.resource.spi package contains APIs for the system contracts defined in the Jakarta Connectors specification.jakarta.resource.spi.endpoint This package contains system contracts for service endpoint interactions.jakarta.resource.spi.work This package contains APIs for the Work Management, Generic and Security Work Context contracts. -
-
Uses of ResourceException in jakarta.resource
Subclasses of ResourceException in jakarta.resource Modifier and Type Class Description classNotSupportedExceptionANotSupportedExceptionis thrown to indicate that callee (resource adapter or application server for system contracts) cannot execute an operation because the operation is not a supported feature. -
Uses of ResourceException in jakarta.resource.cci
Subclasses of ResourceException in jakarta.resource.cci Modifier and Type Class Description classResourceWarningAResourceWarningprovides information on warnings related to execution of an interaction with an EIS.Methods in jakarta.resource.cci that throw ResourceException Modifier and Type Method Description voidLocalTransaction. begin()Begins a local transaction on an EIS instance.voidInteraction. clearWarnings()Clears all the warning reported by this Interaction instance.voidConnection. close()Initiates close of the connection handle at the application level.voidInteraction. close()Closes the current Interaction and release all the resources held for this instance by the resource adapter.voidLocalTransaction. commit()Commits the current local transaction and release all locks held by the underlying EIS instance.<E> IndexedRecord<E>RecordFactory. createIndexedRecord(String recordName)Creates a IndexedRecord.InteractionConnection. createInteraction()Creates an Interaction associated with this Connection.<K,V>
MappedRecord<K,V>RecordFactory. createMappedRecord(String recordName)Creates a MappedRecord.booleanResultSetInfo. deletesAreDetected(int type)Indicates whether or not a visible row delete can be detected by calling ResultSet.rowDeleted.RecordInteraction. execute(InteractionSpec ispec, Record input)Executes an interaction represented by the InteractionSpec.booleanInteraction. execute(InteractionSpec ispec, Record input, Record output)Executes an interaction represented by the InteractionSpec.ConnectionConnectionFactory. getConnection()Gets a connection to an EIS instance.ConnectionConnectionFactory. getConnection(ConnectionSpec properties)Gets a connection to an EIS instance.StringConnectionMetaData. getEISProductName()Returns product name of the underlying EIS instance connected through the Connection that produced this metadata.StringConnectionMetaData. getEISProductVersion()Returns product version of the underlying EIS instance.LocalTransactionConnection. getLocalTransaction()Returns an LocalTransaction instance that enables a component to demarcate resource manager local transactions on the Connection.ConnectionMetaDataConnection. getMetaData()Gets the information on the underlying EIS instance represented through an active connection.ResourceAdapterMetaDataConnectionFactory. getMetaData()Gets metadata for the Resource Adapter.RecordFactoryConnectionFactory. getRecordFactory()Gets a RecordFactory instance.ResultSetInfoConnection. getResultSetInfo()Gets the information on the ResultSet functionality supported by a connected EIS instance.StringConnectionMetaData. getUserName()Returns the user name for an active connection as known to the underlying EIS instance.ResourceWarningInteraction. getWarnings()Gets the first ResourceWarning from the chain of warnings associated with this Interaction instance.booleanResultSetInfo. insertsAreDetected(int type)Indicates whether or not a visible row insert can be detected by calling ResultSet.rowInserted.RecordMessageListener. onMessage(Record inputData)This method allows an EIS to call a message endpoint using a request-response style communication.booleanResultSetInfo. othersDeletesAreVisible(int type)Indicates whether deletes made by others are visible.booleanResultSetInfo. othersInsertsAreVisible(int type)Indicates whether inserts made by others are visible.booleanResultSetInfo. othersUpdatesAreVisible(int type)Indicates whether updates made by others are visible.booleanResultSetInfo. ownDeletesAreVisible(int type)Indicates whether a ResultSet's own deletes are visible.booleanResultSetInfo. ownInsertsAreVisible(int type)Indicates whether a ResultSet's own inserts are visible.booleanResultSetInfo. ownUpdatesAreVisible(int type)Indicates whether a ResultSet's own updates are visible.voidLocalTransaction. rollback()Rollbacks the current resource manager local transaction.booleanResultSetInfo. supportsResultSetType(int type)Indicates whether or not a resource adapter supports a type of ResultSet.booleanResultSetInfo. supportsResultTypeConcurrency(int type, int concurrency)Indicates whether or not a resource adapter supports the concurrency type in combination with the given ResultSet type/booleanResultSetInfo. updatesAreDetected(int type)Indicates whether or not a visible row update can be detected by calling the methodResultSet.rowUpdated. -
Uses of ResourceException in jakarta.resource.spi
Subclasses of ResourceException in jakarta.resource.spi Modifier and Type Class Description classApplicationServerInternalExceptionAnApplicationServerInternalExceptionis thrown by an application server to indicate error conditions specific to an application server.classCommExceptionThis indicates errors related to failed or interrupted communication with an EIS instance.classEISSystemExceptionAnEISSystemExceptionis used to indicate any EIS specific system-level error conditions.classIllegalStateExceptionAnIllegalStateExceptionis thrown from a method if the callee (resource adapter or application server for system contracts) is in an illegal or inappropriate state for the method invocation.classInvalidPropertyExceptionThis exception is thrown to indicate invalid configuration property settings.classLocalTransactionExceptionALocalTransactionExceptionrepresents various error conditions related to the local transaction management contract.classResourceAdapterInternalExceptionAResourceAdapterInternalExceptionindicates any system-level error conditions related to a resource adapter.classResourceAllocationExceptionAResourceAllocationExceptioncan be thrown by an application server or resource adapter to indicate any failure to allocate system resources (example: threads, physical connections).classRetryableUnavailableExceptionA subclass of theUnavailableExceptionthat indicates that the rejection of the work submission is transient.classSecurityExceptionASecurityExceptionindicates error conditions related to the security contract between an application server and resource adapter.classSharingViolationExceptionThis is thrown to indicate a connection sharing violation.classUnavailableExceptionThis is thrown to indicate that a service is unavailable.Methods in jakarta.resource.spi that throw ResourceException Modifier and Type Method Description ObjectConnectionManager. allocateConnection(ManagedConnectionFactory mcf, ConnectionRequestInfo cxRequestInfo)The method allocateConnection gets called by the resource adapter's connection factory instance.voidLazyAssociatableConnectionManager. associateConnection(Object connection, ManagedConnectionFactory mcf, ConnectionRequestInfo cxReqInfo)This method is called by a resource adapter (that is capable of lazy connection association optimization) in order to lazily associate a connection object with aManagedConnectioninstance.voidManagedConnection. associateConnection(Object connection)Used typically by the container to change the association of an application-level connection handle with a ManagedConnection instance.voidLocalTransaction. begin()Begin a local transactionvoidManagedConnection. cleanup()Application server calls this method to force any cleanup on the ManagedConnection instance.voidLocalTransaction. commit()Commit a local transactionObjectManagedConnectionFactory. createConnectionFactory()Creates a Connection Factory instance.ObjectManagedConnectionFactory. createConnectionFactory(ConnectionManager cxManager)Creates a Connection Factory instance.ManagedConnectionManagedConnectionFactory. createManagedConnection(Subject subject, ConnectionRequestInfo cxRequestInfo)Creates a new physical connection to the underlying EIS resource manager.voidManagedConnection. destroy()Destroys the physical connection to the underlying resource manager.voidDissociatableManagedConnection. dissociateConnections()This method is called by an application server (that is capable of lazy connection association optimization) in order to dissociate aManagedConnectioninstance from all of its connection handles.voidResourceAdapter. endpointActivation(MessageEndpointFactory endpointFactory, ActivationSpec spec)This is called during the activation of a message endpoint.ObjectManagedConnection. getConnection(Subject subject, ConnectionRequestInfo cxRequestInfo)Creates a new connection handle for the underlying physical connection represented by the ManagedConnection instance.StringManagedConnectionMetaData. getEISProductName()Returns Product name of the underlying EIS instance connected through the ManagedConnection.StringManagedConnectionMetaData. getEISProductVersion()Returns product version of the underlying EIS instance connected through the ManagedConnection.SetValidatingManagedConnectionFactory. getInvalidConnections(Set connectionSet)This method returns a set of invalidManagedConnectionobjects chosen from a specified set ofManagedConnectionobjects.LocalTransactionManagedConnection. getLocalTransaction()Returns anjakarta.resource.spi.LocalTransactioninstance.PrintWriterManagedConnection. getLogWriter()Gets the log writer for this ManagedConnection instance.PrintWriterManagedConnectionFactory. getLogWriter()Get the log writer for this ManagedConnectionFactory instance.intManagedConnectionMetaData. getMaxConnections()Returns maximum limit on number of active concurrent connections that an EIS instance can support across client processes.ManagedConnectionMetaDataManagedConnection. getMetaData()Gets the metadata information for this connection's underlying EIS resource manager instance.StringManagedConnectionMetaData. getUserName()Returns name of the user associated with the ManagedConnection instance.XAResourceManagedConnection. getXAResource()Returns anjavax.transaction.xa.XAresourceinstance.XAResource[]ResourceAdapter. getXAResources(ActivationSpec[] specs)This method is called by the application server during crash recovery.voidLazyEnlistableConnectionManager. lazyEnlist(ManagedConnection mc)This method is called by a resource adapter (that is capable of lazy transaction enlistment optimization) in order to lazily enlist a connection object with a XA transaction.ManagedConnectionManagedConnectionFactory. matchManagedConnections(Set connectionSet, Subject subject, ConnectionRequestInfo cxRequestInfo)Returns a matched connection from the candidate set of connections.voidLocalTransaction. rollback()Rollback a local transactionvoidManagedConnection. setLogWriter(PrintWriter out)Sets the log writer for this ManagedConnection instance.voidManagedConnectionFactory. setLogWriter(PrintWriter out)Set the log writer for this ManagedConnectionFactory instance.voidResourceAdapterAssociation. setResourceAdapter(ResourceAdapter ra)Associate this object with aResourceAdapterobject. -
Uses of ResourceException in jakarta.resource.spi.endpoint
Methods in jakarta.resource.spi.endpoint that throw ResourceException Modifier and Type Method Description voidMessageEndpoint. afterDelivery()This is called by a resource adapter after a message is delivered.voidMessageEndpoint. beforeDelivery(Method method)This is called by a resource adapter before a message is delivered. -
Uses of ResourceException in jakarta.resource.spi.work
Subclasses of ResourceException in jakarta.resource.spi.work Modifier and Type Class Description classRetryableWorkRejectedExceptionA subclass of theWorkRejectedExceptionthat indicates that the the service unavailability is transient.classWorkCompletedExceptionThis exception is thrown by aWorkManagerto indicate that a submittedWorkinstance has completed with an exception.classWorkExceptionA common base class for allWorkprocessing related exceptions.classWorkRejectedExceptionThis exception is thrown by aWorkManagerto indicate that a submittedWorkinstance has been rejected.
-