SYSTEM AND METHOD FOR TRANSACTION RECOVERY IN A MULTITENANT APPLICATION SERVER ENVIRONMENT
First Claim
1. A system for transaction recovery in a multitenant application server environment, comprising:
- one or more computers, including an application server environment executing thereon, together witha plurality of deployable resources which can be used within the application server environment,one or more resource group templates, which define groupings of deployable resources within a domain, andone or more partitions, wherein each partition provides an administrative and runtime subdivision of the domain, that can be associated with a tenant;
a transaction manager operating in the application server environment;
a determiner resource manager, the determiner resource manager being associated with one of the one or more partitions, the determiner resource manager being used in a transaction; and
a plurality of resource managers, the plurality of resource managers being used in the transaction;
wherein the transaction manager is configured to process the transaction by,sending a prepare message to the determiner resource manager only after receiving acknowledgement of successful prepare actions on the plurality of resource managers,sending a commit message to the determiner resource manager only after receiving acknowledgement of successful commit actions on the plurality of resource managers; and
upon a failure,retrieving a list of in-doubt transactions from each of the plurality of resource managers and the determiner resource manager, andrecovering all in-doubt transactions without using a transaction log.
1 Assignment
0 Petitions
Accused Products
Abstract
In accordance with an embodiment, described herein is a system and method for transaction recovery in a multitenant application server environment. At least one resource manager associated with a partition can be designated as a determiner resource for that partition only, in order to support eliminating transaction logs (TLOG) in processing a two-phase commit transaction. A transaction manager can prepare all other resource managers in the mid-tier transactional system before the determiner resource. Furthermore, the transaction manager can rely on the list of outstanding transactions to be committed that is provided by the determiner resource for recovering the transaction. The transaction manager can commit an in-doubt transaction returned from a resource manager that matches the list of in-doubt transactions returned from the determiner resource. Otherwise, the transaction manager can roll back the in-doubt transaction.
-
Citations
20 Claims
-
1. A system for transaction recovery in a multitenant application server environment, comprising:
-
one or more computers, including an application server environment executing thereon, together with a plurality of deployable resources which can be used within the application server environment, one or more resource group templates, which define groupings of deployable resources within a domain, and one or more partitions, wherein each partition provides an administrative and runtime subdivision of the domain, that can be associated with a tenant; a transaction manager operating in the application server environment; a determiner resource manager, the determiner resource manager being associated with one of the one or more partitions, the determiner resource manager being used in a transaction; and a plurality of resource managers, the plurality of resource managers being used in the transaction; wherein the transaction manager is configured to process the transaction by, sending a prepare message to the determiner resource manager only after receiving acknowledgement of successful prepare actions on the plurality of resource managers, sending a commit message to the determiner resource manager only after receiving acknowledgement of successful commit actions on the plurality of resource managers; and upon a failure, retrieving a list of in-doubt transactions from each of the plurality of resource managers and the determiner resource manager, and recovering all in-doubt transactions without using a transaction log. - View Dependent Claims (2, 3, 4, 5, 6, 7)
-
-
8. A method for transaction recovery in a multitenant application server environment, comprising:
-
providing, at one or more computers, including an application server environment executing thereon, a plurality of deployable resources which can be used within the application server environment, one or more resource group templates, which define groupings of deployable resources within a domain, and one or more partitions, wherein each partition provides an administrative and runtime subdivision of the domain, that can be associated with a tenant; operating a transaction manager within the application server environment; and associating a determiner resource manager with one of the one or more partitions, the determiner resource manager being used in a transaction; and providing a plurality of resource managers, the plurality of resource managers being used in the transaction; wherein the transaction manager is configured to process the transaction by, sending a prepare message to the determiner resource manager only after receiving acknowledgement of successful prepare actions on the plurality of resource managers, and sending a commit message to the determiner resource manager only after receiving acknowledgement of successful commit actions on the plurality of resource managers; and upon a failure, retrieving a list of in-doubt transactions from each of the plurality of resource managers and the determiner resource manager, and recovering all in-doubt transactions without using a transaction log. - View Dependent Claims (9, 10, 11, 12, 13, 14)
-
-
15. A non-transitory computer readable storage medium, including instructions stored thereon for transaction recovery in a multitenant application server environment which when read and executed by one or more computers cause the one or more computers to perform steps comprising:
-
providing, at one or more computers, including an application server environment executing thereon, a plurality of deployable resources which can be used within the application server environment, one or more resource group templates, which define groupings of deployable resources within a domain, and one or more partitions, wherein each partition provides an administrative and runtime subdivision of the domain, that can be associated with a tenant; operating a transaction manager within the application server environment; and associating a determiner resource manager with one of the one or more partitions, the determiner resource manager being used in a transaction; and providing a plurality of resource managers, the plurality of resource managers being used in the transaction; wherein the transaction manager is configured to process the transaction by, sending a prepare message to the determiner resource manager only after receiving acknowledgement of successful prepare actions on the plurality of resource managers, and sending a commit message to the determiner resource manager only after receiving acknowledgement of successful commit actions on the plurality of resource managers; and upon a failure, retrieving a list of in-doubt transactions from each of the plurality of resource managers and the determiner resource manager, and recovering all in-doubt transactions without using a transaction log. - View Dependent Claims (16, 17, 18, 19, 20)
-
Specification