System and method for supporting transaction affinity based on resource manager (RM) instance awareness in a transactional environment
First Claim
1. A method for supporting transaction processing in a transactional system comprising a plurality of transactional servers, and a clustered database comprising a plurality of resource manager (RM) instances, the method comprising:
- receiving a plurality of requests to the transactional system;
routing each of the plurality of requests to a transactional server of the plurality of transactional servers, wherein the transactional server is connected to an RM instance of the plurality of RM instances;
establishing for each of the plurality of requests an affinity context identifying a transactional server of the plurality of transactional servers, a database name, a database service name, and an RM instance name associated with transactions responsive to said each of the plurality of requests;
storing in a shared memory the affinity contexts for said each of the plurality of requests;
receiving a subsequent request to the transactional system; and
routing the subsequent request to a particular transactional server of the plurality of transactional servers using a transaction affinity routing policy which identifies a relationship between the subsequent transaction and the stored affinity contexts established for the plurality of requests, wherein said transaction affinity routing policy performs the additional steps of;
routing the subsequent request to the particular transactional server where the particular transactional server includes one of a same RM instance name, same database name, and same database service name as the subsequent request, androuting the subsequent request to the particular transaction server according to a load balancing function if no particular server is identified based on said one or more of a same RM instance name, same database name, and same database service name as the subsequent request.
0 Assignments
0 Petitions
Accused Products
Abstract
A system and method can support transaction processing in a transactional environment. A transactional system operates to route a request to a transactional server, wherein the transactional server is connected to a resource manager (RM) instance. Furthermore, the transactional system can assign an affinity context to the transactional server, wherein the affinity context indicates the RM instance that the transactional server is associated with, and the transactional system can route one or more subsequent requests that are related to the request to the transactional server based on the affinity context.
77 Citations
16 Claims
-
1. A method for supporting transaction processing in a transactional system comprising a plurality of transactional servers, and a clustered database comprising a plurality of resource manager (RM) instances, the method comprising:
-
receiving a plurality of requests to the transactional system; routing each of the plurality of requests to a transactional server of the plurality of transactional servers, wherein the transactional server is connected to an RM instance of the plurality of RM instances; establishing for each of the plurality of requests an affinity context identifying a transactional server of the plurality of transactional servers, a database name, a database service name, and an RM instance name associated with transactions responsive to said each of the plurality of requests; storing in a shared memory the affinity contexts for said each of the plurality of requests; receiving a subsequent request to the transactional system; and routing the subsequent request to a particular transactional server of the plurality of transactional servers using a transaction affinity routing policy which identifies a relationship between the subsequent transaction and the stored affinity contexts established for the plurality of requests, wherein said transaction affinity routing policy performs the additional steps of; routing the subsequent request to the particular transactional server where the particular transactional server includes one of a same RM instance name, same database name, and same database service name as the subsequent request, and routing the subsequent request to the particular transaction server according to a load balancing function if no particular server is identified based on said one or more of a same RM instance name, same database name, and same database service name as the subsequent request. - View Dependent Claims (2, 3, 4, 5, 6, 7, 8)
-
-
9. A system for supporting processing a global transaction in a transactional middleware environment, comprising:
-
one or more microprocessors; a transactional system comprising a plurality of transactional servers running on the one or more microprocessors, and a clustered database comprising a plurality of resource manager (RM) instances, wherein the transactional system operates to perform steps comprising; receiving a plurality of requests to the transactional system; routing each of the plurality of requests to a transactional server of the plurality of transactional servers, wherein the transactional server is connected to an RM instance of the plurality of RM instances; establishing for each of the plurality of requests an affinity context identifying a transactional server of the plurality of transactional servers, a database name, a database service name, an RM instance name associated with transactions responsive to said each of the plurality of requests; storing in a shared memory the affinity contexts for said each of the plurality of requests; receiving a subsequent request to the transactional system; and routing the subsequent request to a particular transactional server of the plurality of transactional servers using a transaction affinity routing policy which identifies a relationship between the subsequent transaction and the stored affinity contexts established for the plurality of requests, wherein said transaction affinity routing policy performs the additional steps of; routing the subsequent request to the particular transactional server where the particular transactional server includes one of a same RM instance name, same database name, and same database service name as the subsequent request, and routing the subsequent request to the particular transaction server according to a load balancing function if no particular server is identified based on said one or more of a same RM instance name, same database name, and same database service name as the subsequent request. - View Dependent Claims (10, 11, 12, 13, 14, 15)
-
-
16. A non-transitory machine readable storage medium having instructions stored thereon for supporting transaction processing in a transactional system comprising a plurality of transactional servers, and a clustered database comprising a plurality of resource manager (RM) instances, which instructions, when executed, cause the transactional servers in the transactional system to perform steps method comprising:
-
receiving a plurality of requests to the transactional system; routing each of the plurality of requests to a transactional server of the plurality of transaction servers, wherein the transactional server is connected to an RM instance of the plurality of RM instances; establishing for each of the plurality of requests an affinity context identifying a transactional server of the plurality of transactional servers, a database name, a database service name, an RM instance name associated with transactions responsive to said each of the plurality of requests; storing in a shared memory the affinity contexts for said each of the plurality of requests; receiving a subsequent request to the transactional system; and routing the subsequent request to a particular transactional server of the plurality of transactional servers using a transaction affinity routing policy which identifies a relationship between the subsequent transaction and the stored affinity contexts established for the plurality of requests, wherein said transaction affinity routing policy performs the additional steps of; routing the subsequent request to the particular transactional server where the particular transactional server includes one of a same RM instance name, same database name, and same database service name as the subsequent request, and routing the subsequent request to the particular transaction server according to a load balancing function if no particular server is identified based on said one or more of a same RM instance name, same database name, and same database service name as the subsequent request.
-
Specification