Local transaction management
First Claim
1. A method of managing local transactions in a computer system, the computer system having at least one application server, at least one client process, a resource adapter, an application component and an enterprise information system comprising computing resources, the application server having a first software module and a second software module, the application server having a container having a local transaction manager, a connection manager and a connection event listener, the resource adapter having a connection factory, a connection instance, a managed connection instance, a local transaction instance representing a local transaction, the local transaction having a local transaction context, the resource adapter having an XAResource, the method comprising the steps of:
- the client process invokes method on the first software module;
the container initiates a local transaction;
the first software module invokes a method on the second software module;
the second software module makes request to acquire connection to the computing resource;
the application server retains a connection with the local transaction context;
the second software module calls close on the connection;
first software module uses the connection to access the computing resource;
first software module closes the connection;
the application server initiates cleanup of the connection instance; and
the connection instance is made available for next connection request.
2 Assignments
0 Petitions
Accused Products
Abstract
The present invention defines a transaction management contract between an application server and a resource adapter and its underlying resource manager that allows an application server to utilize local transactions on a resource manager and avoid the overhead of an external transaction manager. The transaction management contract incorporates two aspects that apply to different types of transactions. The first aspect provides an application level transaction contract between a transaction manager and a resource manager based on javax.transaction.xa.XAResource of the J2EE specification. The second aspect is local transaction management contract. These contracts enable application server to provide the infrastructure and runtime environment for transaction management. An application component relies on this transaction infrastructure to support its component level transaction model.
-
Citations
12 Claims
-
1. A method of managing local transactions in a computer system, the computer system having at least one application server, at least one client process, a resource adapter, an application component and an enterprise information system comprising computing resources, the application server having a first software module and a second software module, the application server having a container having a local transaction manager, a connection manager and a connection event listener, the resource adapter having a connection factory, a connection instance, a managed connection instance, a local transaction instance representing a local transaction, the local transaction having a local transaction context, the resource adapter having an XAResource, the method comprising the steps of:
-
the client process invokes method on the first software module;
the container initiates a local transaction;
the first software module invokes a method on the second software module;
the second software module makes request to acquire connection to the computing resource;
the application server retains a connection with the local transaction context;
the second software module calls close on the connection;
first software module uses the connection to access the computing resource;
first software module closes the connection;
the application server initiates cleanup of the connection instance; and
the connection instance is made available for next connection request. - View Dependent Claims (2, 3, 4, 5, 6, 7, 8, 9, 10)
-
-
11. A computer readable medium for use in a computer system, the computer system having at least one application server, at least one client process, a resource adapter, an application component and an enterprise information system comprising computing resources, the application server having a first software module client process and a second software module client process, the application server having a container having a local transaction manager, a connection manager and a connection event listener, the resource adapter having a connection factory, a connection instance, a managed connection instance, a local transaction instance representing a local transaction, the local transaction having a local transaction context, the resource adapter having an XAResource, the computer readable medium containing instructions, which, when executed by a computer, manage local transactions by performing the steps of:
-
the client process invokes method on the first software module;
the container initiates a local transaction;
the first software module invokes a method on the second software module;
the second software module makes request to acquire connection to the computing resource;
the application server retains a connection with the local transaction context;
the second software module calls close on the connection;
first software module uses the connection to access the computing resource;
first software module closes the connection;
the application server initiates cleanup of the connection instance; and
the connection instance is made available for next connection request.
-
-
12. A computer system having an application server, a resource adapter, an application component and an enterprise information system, the application server having:
- first and second software modules, a connection manager, a container, the container having a transaction manager, and a connection event listener;
the resource adapter having;
a connection factory, a connection instance, a managed connection, a local transaction, and a XAResource;
the application server in communication with the local transaction instance, the application server in communication with the managed connection instance, the local transaction manager in communication with the XAResource, the application component in communication with the connection instance, the connection instance in communication with the managed connection instance, the managed connection instance in communication with the enterprise information system, the managed connection instance in communication with the connection event listener, the managed connection instance in communication with the application server, such that transactions between the application server and the resource adapter are handled by the local transaction manager.
- first and second software modules, a connection manager, a container, the container having a transaction manager, and a connection event listener;
Specification