Context Switch of Database Connections
AssigneeInternational Business Machines Corporation
InventorsMauro Arcese, Stefano Sidoti
Life of this patent
Estimating the term…
Abstract
A solution is proposed for accessing a database by an application client. A corresponding method comprises receiving a connection command for opening a user connection between a user client of the application client and the database from the application client, the connection command comprising an indication of a context of the user client, assigning an application connection between the application client and the database to the user client in response to the connection command, and switching a context of the application connection to the context of the user client.
Claims21
A method for accessing a database by an application client, the method comprising:
- receiving a connection command for opening a user connection between a user client of the application client and the database from the application client, the connection command comprising an indication of a context of the user client;
- assigning an application connection between the application client and the database to the user client in response to the connection command;
- switching a context of the application connection to the context of the user client;
- generating a switching command, for assigning the application connection to the user client and switching the context of the application connection to the context of the user client, according to the connection command;
- submitting the switching command to the database;
- receiving the switching command by a database agent of the database;
- in response to a positive recognition of the switching command by the database agent:
- spawning a database sub-agent by the database agent,
- wherein assigning the application connection and switching the context are performed by the database sub-agent, or in response to a negative recognition of the switching command by the database agent:
- forwarding the switching command to a database server,
- wherein assigning the application connection and switching the context are performed by the database server.
(canceled)
(canceled)
A computer program product for accessing a database by an application client, the computer program product comprising a non-transitory computer usable storage medium embodied with instructions configured to perform steps of:
- receiving a connection command for opening a user connection between a user client of the application client and the database from the application client, the connection command comprising an indication of a context of the user client;
- assigning an application connection between the application client and the database to the user client in response to the connection command;
- switching a context of the application connection to the context of the user client;
- generating a switching command, for assigning the application connection to the user client and switching the context of the application connection to the context of the user client, according to the connection command;
- submitting the switching command to the database;
- receiving the switching command by a database agent of the database;
- in response to a positive recognition of the switching command by the database agent:
- spawning a database sub-agent by the database agent,
- wherein assigning the application connection and switching the context are performed by the database sub-agent, or in response to a negative recognition of the switching command by the database agent:
- forwarding the switching command to a database server,
- wherein assigning the application connection and switching the context are performed by the database server.
A system comprising a data processor coupled to a storage device comprising instructions configured to perform steps of:
- receiving a connection command for opening a user connection between a user client of the application client and the database from the application client, the connection command comprising an indication of a context of the user client;
- assigning an application connection between the application client and the database to the user client in response to the connection command;
- switching a context of the application connection to the context of the user client;
- generating a switching command, for assigning the application connection to the user client and switching the context of the application connection to the context of the user client, according to the connection command;
- submitting the switching command to the database;
- receiving the switching command by a database agent of the database;
- in response to a positive recognition of the switching command by the database agent:
- spawning a database sub-agent by the database agent,
- wherein assigning the application connection and switching the context are performed by the database sub-agent, or in response to a negative recognition of the switching command by the database agent:
- forwarding the switching command to a database server,
- wherein assigning the application connection and switching the context are performed by the database server.
Dependencies are inferred from the claim text.