# US 2010/0306490 A1 · Transactional object container

> Agents: this data is available as JSON from the patentgrep API and MCP server — see https://patentgrep.com/llms.txt

- Number: US 2010/0306490 A1
- Document ID: US20100306490A1
- Status: Published application
- Kind: A1
- Application number: 12/475,429
- Filed: 2009-05-29
- Published: 2010-12-02
- Earliest claimed: 2009-05-29
- Assignees: Red Hat, Inc.
- Inventors: Mark Cameron Little
- Web page: https://patentgrep.com/patent/US20100306490A1

## CPC

- G06F 8/315: {Object-oriented languages}
- G06F 9/466: {Transaction processing}
- G06F 9/526: {Mutual exclusion algorithms}
- G06F 8/41: Compilation
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

A computing device receives an object at runtime of a compiled application, wherein the object is a component of the application. The computing device generates a transactional proxy for the object, the transactional proxy including transactional logic, a transactional marker and a pointer to the object. The transactional proxy is passed to the application, wherein the application to make calls on the transactional proxy instead of on the object.

## Claims

### Claim 1

A computer implemented method, comprising:
receiving, by a computing device, an object at runtime of a compiled application, wherein the object is a component of the application;
generating a transactional proxy for the object by the computing device, the transactional proxy including transactional logic, a transactional marker and a pointer to the object; and
passing the transactional proxy to the application, wherein the application to make calls on the transactional proxy instead of on the object.

### Claim 2 (depends on 1)

The method of claim 1, wherein the transaction logic includes logic for generating locks, for creating transaction logs, and for committing and aborting transactions, and wherein the transactional marker identifies to a transaction system that the transactional proxy is to be managed transactionally.

### Claim 3 (depends on 1)

The method of claim 1, further comprising:
receiving a command by the transactional proxy to perform an action;
determining a locking strategy to use for the object based on the received command;
setting a lock for the object upon determining the locking strategy; and
forwarding the command to the object.

### Claim 4 (depends on 3)

The method of claim 3, wherein the command is a command to modify a state of the object, the method further comprising:
determining that a write lock is appropriate;
saving the state of the object;
setting the write lock for the object; and
enrolling in an active transaction for the object.

### Claim 5 (depends on 3)

The method of claim 3, wherein the command is a command to read a state of the object, the method further comprising:
determining that a read lock is appropriate; and
setting the read lock for the object.

### Claim 6 (depends on 1)

The method of claim 1, further comprising:
receiving a command to generate the object;
generating the object using a first factory object; and
generating the transactional proxy for the object using a second factory object that wraps the first factory object.

### Claim 7 (depends on 1)

The method of claim 1, further comprising:
receiving a command by the transactional proxy to perform an action;
setting a lock for the object based on a locking strategy that has been specified by an application optimizer, wherein the application optimizer monitored the behavior of the object to identify the locking strategy; and
forwarding the command to the object.

### Claim 8

A computing apparatus, comprising:
a memory including instructions for a transactional object container; and
a processing device, connected with the memory, to execute the instructions, wherein the instructions cause the processing device to:
receive an object at runtime of a compiled application, wherein the object is a component of the application;
generate a transactional proxy for the object, the transactional proxy including transactional logic, a transactional marker and a pointer to the object; and
pass the transactional proxy to the application, wherein the application to make calls on the transactional proxy instead of on the object.

### Claim 9 (depends on 8)

The computing apparatus of claim 8, wherein the transaction logic includes logic for generating locks, for creating transaction logs, and for committing and aborting transactions, and wherein the transactional marker identifies to a transaction system that the transactional proxy is to be managed transactionally.

### Claim 10 (depends on 8)

The computing apparatus of claim 8, the instructions further to cause the processing device to:
receive a command by the transactional proxy to perform an action;
determine a locking strategy to use for the object based on the received command;
set a lock for the object upon determining the locking strategy; and
forward the command to the object.

### Claim 11 (depends on 10)

The computing apparatus of claim 10, wherein the command is a command to modify a state of the object, the instructions further to cause the processor to:
determine that a write lock is appropriate;
save the state of the object;
set the write lock for the object; and
enroll in an active transaction for the object.

### Claim 12 (depends on 10)

The computing apparatus of claim 10, wherein the command is a command to read a state of the object, the instructions further to cause the processor to:
determine that a read lock is appropriate; and
set the read lock for the object.

### Claim 13 (depends on 8)

The computing apparatus of claim 8, the instructions further to cause the processor to:
receive a command to generate the object;
generate the object using a first factory object; and
generate the transactional proxy for the object using a second factory object that wraps the first factory object.

### Claim 14 (depends on 8)

The computing apparatus of claim 8, the instructions further to cause the processor to:
receive a command by the transactional proxy to perform an action;
set a lock for the object based on a locking strategy that has been specified by an application optimizer, wherein the application optimizer monitored the behavior of the object to identify the locking strategy; and
forward the command to the object.

### Claim 15

A computer readable storage medium including instructions that, when executed by a processing device, cause the processing device to perform a method comprising:
receiving, by a computing device, an object at runtime of a compiled application, wherein the object is a component of the application;
generating a transactional proxy for the object by the computing device, the transactional proxy including transactional logic, a transactional marker and a pointer to the object; and
passing the transactional proxy to the application, wherein the application to make calls on the transactional proxy instead of on the object.

### Claim 16 (depends on 15)

The A computer readable storage medium of claim 15, wherein the transaction logic includes logic for generating locks, for creating transaction logs, and for committing and aborting transactions, and wherein the transactional marker identifies to a transaction system that the transactional proxy is to be managed transactionally.

### Claim 17 (depends on 16)

The A computer readable storage medium of claim 16, the method further comprising:
receiving a command by the transactional proxy to perform an action;
determining a locking strategy to use for the object based on the received command;
setting a lock for the object upon determining the locking strategy; and
forwarding the command to the object.

### Claim 18 (depends on 17)

The A computer readable storage medium of claim 17, wherein the command is a command to modify a state of the object, the method further comprising:
determining that a write lock is appropriate;
saving the state of the object;
setting the write lock for the object; and
enrolling in an active transaction for the object.

### Claim 19 (depends on 17)

The A computer readable storage medium of claim 17, wherein the command is a command to read a state of the object, the method further comprising:
determining that a read lock is appropriate; and
setting the read lock for the object.

### Claim 20 (depends on 15)

The A computer readable storage medium of claim 15, the method further comprising:
receiving a command to generate the object;
generating the object using a first factory object; and
generating the transactional proxy for the object using a second factory object that wraps the first factory object.

### Claim 21 (depends on 15)

The A computer readable storage medium of claim 15, the method further comprising:
receiving a command by the transactional proxy to perform an action;
setting a lock for the object based on a locking strategy that has been specified by an application optimizer, wherein the application optimizer monitored the behavior of the object to identify the locking strategy; and
forwarding the command to the object.
