Method for native program to inherit same transaction context when invoked by primary program running in separate environment
First Claim
1. A method for a native application to inherit a transaction context when invoked by a primary application running in a separate hosting environment, comprising:
- receiving an invocation of the native application to run at a native application server in a first hosting environment separate from a second hosting environment, the invocation initiated by the primary application running at a primary application server in the second hosting environment;
in response to the invocation, receive, by a query transceiver at the native application server, a unique transaction context identifier for the invocation, wherein the unique transaction context identifier is generated in the primary application server when a transaction context is established;
in response to encountering a query statement embedded in the native application during the execution of the native application, send the query statement from the native application to the query transceiver at the native application server;
send the query statement and the unique transaction context identifier from the query transceiver to the primary application server for execution on a database by the primary application server, wherein the database resides on the primary application server;
receive, by the query transceiver, a result of the execution of the query statement and the unique transaction context identifier from the primary application server;
send, by the query transceiver, the result to the native application; and
wherein, the query statement embedded in the native application is executed on the database on the primary application server and the execution of the native application at the native application server in the first hosting environment are performed sharing the same database connection, and without modifying the native application, by passing the unique transaction context identifier along with the query statement, and passing the unique transaction context identifier along with the result of the execution of the query statement.
2 Assignments
0 Petitions
Accused Products
Abstract
Native applications inherit transaction contexts when invoked by primary applications running in separate hosting environments, by: receiving, by an interface of a native application server in a first hosting environment, a unique transaction context identifier for an invocation of the native application at the native application server by the primary application at a primary application server in a second hosting environment; receiving a SQL statement from the native application by the interface of the native application server; sending the SQL statement and the unique transaction context identifier to the primary application server for execution by the interface of the native application server; receiving a result of the execution of the SQL statement and the unique transaction context identifier from the primary application server by the interface of the native application server; and sending the result to the native application by the interface of the native application server.
-
Citations
11 Claims
-
1. A method for a native application to inherit a transaction context when invoked by a primary application running in a separate hosting environment, comprising:
-
receiving an invocation of the native application to run at a native application server in a first hosting environment separate from a second hosting environment, the invocation initiated by the primary application running at a primary application server in the second hosting environment; in response to the invocation, receive, by a query transceiver at the native application server, a unique transaction context identifier for the invocation, wherein the unique transaction context identifier is generated in the primary application server when a transaction context is established; in response to encountering a query statement embedded in the native application during the execution of the native application, send the query statement from the native application to the query transceiver at the native application server; send the query statement and the unique transaction context identifier from the query transceiver to the primary application server for execution on a database by the primary application server, wherein the database resides on the primary application server; receive, by the query transceiver, a result of the execution of the query statement and the unique transaction context identifier from the primary application server; send, by the query transceiver, the result to the native application; and
wherein, the query statement embedded in the native application is executed on the database on the primary application server and the execution of the native application at the native application server in the first hosting environment are performed sharing the same database connection, and without modifying the native application, by passing the unique transaction context identifier along with the query statement, and passing the unique transaction context identifier along with the result of the execution of the query statement. - View Dependent Claims (2, 3, 4, 5, 6, 7)
-
-
8. A method for a native application to inherit a transaction context when invoked by a primary application running in a separate hosting environment, comprising:
-
receiving, by an interface of a native application server in a first hosting environment, a unique transaction context identifier for an invocation of the native application to run at the native application server in a first hosting environment separate from a second hosting environment, the invocation initiated by the primary application at a primary application server in the second hosting environment; in response to the invocation, receiving a query statement from the native application by the interface of the native application server; sending the query statement and the unique transaction context identifier to the primary application server for execution by the interface of the native application server; in response to receiving the query statement from the interface of the native application server by a second interface of the primary application server, delegating the execution of the query statement to a thread of the primary application server by the second interface of the primary application server; executing the query statement on a database on the primary application server and returning the result of the execution to the second interface by the thread of the primary application server, wherein the query statement embedded in the native application executed on the database on the primary application server and the execution of the native application at the native application server in the first hosting environment are performed sharing the same database connection, and without modifying the native application, by passing the unique transaction context identifier along with the query statement, and passing the unique transaction context identifier along with the result of the execution of the query statement; returning the result of the execution of the query statement and the unique transaction context identifier to the interface of the native application server by the second interface of the primary application server; and in response to receiving the result of the execution of the query statement and the unique transaction context identifier from the primary application server by the interface of the native application server, sending the result to the native application by the interface of the native application server. - View Dependent Claims (9, 10, 11)
-
Specification