Patent ID: 7640249

Claim:
A method associated with a computer comprising: signaling a commit of one or more stateful applications associated with a session object, wherein the one or more stateful applications having states spread on at least a business logic layer and a persistence layer; saving information, associated with the one or more stateful applications in response to the commit signal, by a transaction persistence module of a session manager, the session manager to maintain keys and references to the session object; determining existence of a deep copy of the session object; creating, in response to the determining, a new deep copy of the session object concurrently for all aspects of a transaction; updating the deep copy of the session object in response to the determining, wherein the created new deep copy and the updated deep copy of the session object include data of all objects that are directly or indirectly referenced by the session object; supplying the deep copy to the one or more stateful applications responsive to a rollback condition; and continuing a session corresponding to the session object from a point at which the deep copy was most recently saved or updated or from a point at which the new deep copy was created.