# US 2006/0143609 A1 · System and method for managing memory of Java session objects

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

- Number: US 2006/0143609 A1
- Document ID: US20060143609A1
- Status: Published application
- Kind: A1
- Application number: 11/025,316
- Filed: 2004-12-28
- Published: 2006-06-29
- Earliest claimed: 2004-12-28
- Assignees: Sap SE
- Inventors: Georgi Stanev
- Web page: https://patentgrep.com/patent/US20060143609A1

## CPC

- G06F 11/1484: {involving virtual machines}
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

A method for managing a session with a client is described in which the method receives from the client a request for the session. The session is handled with a first virtual machine. The method places the session state information for the session into an object located in the first virtual machine's local memory. The method writes into a shared memory an object that contains the session state information. In response to a failure that renders the first virtual machine unable to handle the session, the method reads the object in the shared memory from the shared memory and places it into a second virtual machine's local memory. Lastly, the method receives from the client another request for the session, and handles the another request with the second virtual machine and the session state information.

## Claims

### Claim 1

A method for managing a session with a client, comprising:
receiving from said client a request for said session, said session handled with a first virtual machine;
placing session state information for said session into an object located in said first virtual machine's local memory;
writing into a shared memory an object that contains said session state information;
in response to a failure that renders said first virtual machine unable to handle said session: reading said object in said shared memory from said shared memory and placing it into a second virtual machine's local memory;
receiving from said client another request for said session; and
handling said another request with said second virtual machine and said session state information.

### Claim 2 (depends on 1)

The method of claim 1 wherein said first and second virtual machines are both Java virtual machines.

### Claim 3 (depends on 2)

The method of claim 2 wherein said first virtual machine interprets code for a first Java container and said second virtual machine interprets code for a second Java container.

### Claim 4 (depends on 1)

The method of claim 1 wherein said method further comprises placing said object in said first virtual machine's local memory into a deactivated state before said writing;

### Claim 5 (depends on 4)

The method of claim 4 wherein said method further comprises deleting said object in said first virtual machine's local memory while it is in said deactivated state.

### Claim 6 (depends on 1)

The method of claim 1 wherein object is a member of a shared closure.

### Claim 7

An article of manufacture including program code which, when executed by a machine, causes the machine to perform a method, the method comprising:
receiving from said client a request for said session, said session handled with a first virtual machine;
placing session state information for said session into an object located in said first virtual machine's local memory;
writing into a shared memory an object that contains said session state information;
in response to a failure that renders said first virtual machine unable to handle said session: reading said object in said shared memory from said shared memory and placing it into a second virtual machine's local memory;
receiving from said client another request for said session; and
handling said another request with said second virtual machine and said session state information.

### Claim 8 (depends on 7)

The article of manufacture of claim 7 wherein said first and second virtual machines are both Java virtual machines.

### Claim 9 (depends on 8)

The article of manufacture of claim 8 wherein said first virtual machine interprets code for a first Java container and said second virtual machine interprets code for a second Java container.

### Claim 10 (depends on 7)

The article of manufacture of claim 7 wherein said method further comprises placing said object in said first virtual machine's local memory into a deactivated state before said writing;

### Claim 11 (depends on 10)

The article of manufacture of claim 10 wherein said method further comprises deleting said object in said first virtual machine's local memory while it is in said deactivated state.

### Claim 12 (depends on 7)

The article of manufacture of claim 7 wherein said object is a member of a shared closure.

### Claim 13

A method for managing a session with a client, comprising:
receiving from said client a request for said session, said session handled with a first virtual machine;
placing session state information for said session into an object located in said first virtual machine's local memory;
writing into a shared memory an object that contains said session state information;
creating a reference from said object in said shared memory to said object in said first virtual machine's local memory;
in response to a failure that renders said first virtual machine unable to handle said session: reading said object in said shared memory from said shared memory and placing it into a second virtual machine's local memory;
receiving from said client another request for said session; and
handling said another request with said second virtual machine and said session state information.

### Claim 14 (depends on 13)

The method of claim 13 wherein said first and second virtual machines are both Java virtual machines.

### Claim 15 (depends on 13)

The method of claim 13 wherein said object is a member of a shared closure.

### Claim 16

An article of manufacture including program code which, when executed by a machine, causes the machine to perform a method, the method comprising:
receiving from said client a request for said session, said session handled with a first virtual machine;
placing session state information for said session into an object located in said first virtual machine's local memory;
writing into a shared memory an object that contains said session state information;
creating a reference from said object in said shared memory to said object in said first virtual machine's local memory;
in response to a failure that renders said first virtual machine unable to handle said session: reading said object in said shared memory from said shared memory and placing it into a second virtual machine's local memory;
receiving from said client another request for said session; and
handling said another request with said second virtual machine and said session state information.

### Claim 17 (depends on 16)

The article of manufacture of claim 16 wherein said first and second virtual machines are both Java virtual machines.

### Claim 18 (depends on 16)

The article of manufacture of claim 16 wherein said object is a member of a shared closure.
