# US 2003/0212987 A1 · Client container for building EJB-hosted java applications

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

- Number: US 2003/0212987 A1
- Document ID: US20030212987A1
- Status: Published application
- Kind: A1
- Application number: 10/086,341
- Filed: 2002-02-28
- Published: 2003-11-13
- Earliest claimed: 2001-02-28
- Inventors: Steven J. Demuth; Thomas D. Briese
- Web page: https://patentgrep.com/patent/US20030212987A1

## CPC

- G06F 9/465: {Distributed object oriented systems (remote method invocation [RMI] G06F9/548)}
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

A system and method of minimizing the development cost and increasing the power of EJB-hosted Java applications is disclosed. The invention is a “client container” that extends the J2EE container paradigm to the rich client. The client container efficiently and transparently localizes certain parts of an EJB-hosted application into a client framework, where it can be easily accessed by the client application, and later re-persisted to the hosting EJB container.

## Claims

### Claim 1

A computer-implemented method for executing a Java application on a client using data hosted on an EJB server, the method comprising:
generating an object graph descriptor;
creating a light-weight object graph, based on the object graph descriptor, the light-weight object graph being a subset of a domain object graph on the EJB server;
transporting the light-weight object graph to the client;
executing the Java application on the client;
monitoring a plurality of method invocations performed on the client that interact with the light-weight object graph;
logging a subset of method invocations of the plurality of method invocations that result in a change to the light-weight object graph in a stack; and
persisting changes to the domain object graph on the EJB server.

### Claim 2 (depends on 1)

The method of claim 1 wherein transporting of the light-weight object graph includes serializing the light-weight object graph on the EJB server into a byte-stream, communicating the byte-stream to the client, and deserializing the byte-stream on the client.

### Claim 3 (depends on 1)

The method of claim 1 wherein the object graph descriptor identifies at least one root object and at least one degree of traversal from the root object.

### Claim 4 (depends on 1)

The method of claim 1 wherein the Java application is a Java graphical user interface application.

### Claim 5 (depends on 1)

The method of claim 1 wherein the monitoring step is performed using a dynamic proxy.

### Claim 6 (depends on 5)

The method of claim 5 wherein the monitoring step includes the dynamic proxy receiving a method call, the proxy executing the method call on an object in the light-weight object graph, and the proxy determining if the object changed as a result of the method call.

### Claim 7 (depends on 1)

The method of claim 1 wherein persisting the changes to the domain object graph on the EJB server includes communicating the stack to the EJB server and executing the method calls thereon.

### Claim 8 (depends on 1)

The method of claim 1 further including placing at least one flag in the stack and generating a corresponding snapshot of the light-weight object graph, prior to operation of the method invocation immediately following the flag, such that a user could cause the state of each of a plurality of objects in the light-weight object graph to return to a previous state.

### Claim 9 (depends on 1)

The method of claim 1 wherein executing a Java application on the client includes generating a container aware model adapted to allow the Java application to retrieve data from the light-weight objects embedded in the light-weight object graph.

### Claim 10 (depends on 9)

The method of claim 9 wherein executing a Java application on the client includes creating a form in communication with the light-weight object graph through the container aware model.

### Claim 11 (depends on 10)

The method of claim 10 wherein the container aware model is created by extending a standard Java Swing model.

### Claim 12 (depends on 3)

The method of claim 3 wherein creating a light-weight object graph includes:
locating the root entity bean specified by the at least one root object in the domain object graph;
locating at least one related entity bean in the domain object graph, as specified by the degree of traversal; and
returning a first implementation of the light-weight class from which the root entity bean inherits and a second implementation of the light-weight class from which the related entity bean inherits.

### Claim 13 (depends on 12)

The method of claim 12 wherein the first implementation and the second implementation are generated by an object provider.

### Claim 14 (depends on 1)

The method of claim 1 further including extending the light-weight object graph, based on an extension request from the client identifying an extension root and an extension degree of traversal, creating a light-weight version of the corresponding objects, and transporting the corresponding objects to the client.

### Claim 15 (depends on 1)

The method of claim 1 wherein the domain object graph on the EJB server includes a collection of heavy-weight entity beans and the entity beans are created from:
a foundational light-weight object class specifying a set of states and a set of behaviors associated with a set of light-weight objects;
at least one specific light-weight object class specifying a second set of states and set of behaviors associated with the specific light-weight object class, the specific light-weight object class inheriting from the foundational light-weight object class; and
at least one instance of the at least one specific light-weight object class, the at least one instance including information corresponding to the first and second set of states.

### Claim 16 (depends on 4)

The method of claim 4 wherein the Java graphical user interface application is a Java Swing application.

### Claim 17 (depends on 16)

The method of claim 16 wherein the Java Swing application is a container-aware Java Swing application.

### Claim 18

A computer program product residing on a computer-readable medium for use in creating a client container for interacting with an EJB server, the computer program product comprising:
first instructions for creating a light-weight object graph, based on an object graph descriptor, the light-weight object graph being a subset of a domain object graph on the EJB server;
second instructions for transporting the light-weight object graph to the client;
third instructions for monitoring a plurality of method calls performed on the client that interact with the light-weight object graph;
fourth instructions for logging in a stack a subset of method calls of the plurality of method calls that result in a change to the light-weight object graph; and
fifth instructions for persisting changes to the domain object graph on the EJB server.

### Claim 19 (depends on 18)

The method of claim 18 wherein the second instructions include instructions for serializing the light-weight object graph on the EJB server into a byte-stream, communicating the byte-stream to the client, and deserializing the byte-stream on the client.

### Claim 20 (depends on 18)

The method of claim 18 wherein the object graph descriptor identifies at least one root object and at least one degree of traversal from the root object.

### Claim 21 (depends on 20)

The method of claim 20 wherein the first instructions include instructions for:
locating the root entity bean specified by the at least one root object in the domain object graph;
locating at least one related entity bean in the domain object graph, as specified by the degree of traversal; and
returning a first implementation of the light-weight class from which the root entity bean inherits and a second implementation of the light-weight class from which the related entity bean inherits.

### Claim 22 (depends on 18)

The method of claim 18 including sixth instructions for placing at least one flag in the stack and generating a corresponding snapshot of the light-weight object graph, prior to operation of the method invocation immediately following the flag, such that a user could cause the state of each of a plurality of objects in the light-weight object graph to return to a previous state.

### Claim 23 (depends on 18)

The method of claim 18 wherein persisting the changes to the domain object graph on the EJB server includes communicating the stack to the EJB server and executing the method calls thereon.

### Claim 24 (depends on 23)

The method of claim 23 wherein the fifth instruction include instruction for creating a session bean responsible for executing the method calls in the stack on the EJB server.

### Claim 25 (depends on 18)

The method of claim 18 further including sixth instructions for extending the light-weight object graph, based on an extension request from the client identifying an extension root and an extension degree of traversal, creating a light-weight version of the corresponding objects, and transporting the corresponding objects to the client.

### Claim 26 (depends on 18)

The method of claim 18 further including sixth instructions for defining a set of container-aware Java graphical user interface applications.

### Claim 27 (depends on 26)

The method of claim 26 further including instructions for defining a container-aware model, as an extension of a standard Java Swing model, the container-aware model adapted to allow the Java application to retrieve data from a plurality of light-weight objects embedded in the light-weight object graph.

### Claim 28 (depends on 18)

The method of claim 18 wherein the third instructions include instructions for using a dynamic proxy to receive a method call, execute the method call on an object in the light-weight object graph, and determine if the object changed as a result of the method call.

### Claim 29 (depends on 18)

The method of claim 18 wherein the domain object graph on the EJB server includes a collection of heavy-weight entity beans and the entity beans are created from:
a foundational light-weight object class specifying a set of states and a set of behaviors associated with a set of light-weight objects;
at least one specific light-weight object class specifying a second set of states and set of behaviors associated with the specific light-weight object class, the specific light-weight object class inheriting from the foundational light-weight object class; and
at least one instance of the at least one specific light-weight object class, the at least one instance including information corresponding to the first and second set of states.

### Claim 30

A computer system for executing a Java application on a client using data hosted on an EJB server, the system comprising:
a first storage medium located on the EJB server, the first storage medium including a domain object graph consisting of a plurality of heavy-weight objects;
a servlet located on the EJB server, the servlet configured to execute computer code adapted to:
(i)create a light-weight object graph, based on an object graph descriptor, the light-weight object graph being a subset of the domain object graph; and
(ii)transport the light-weight object graph to the client;
a processor located on the client; and
a second storage medium located on the client, the second storage medium storing the light-weight object graph and computer code adapted to:
(i)execute the Java application; and
(ii)log a subset of method calls of the plurality of method calls that result in a change to the light-weight object graph;

### Claim 31 (depends on 30)

The method of claim 30 wherein the client computer code is further adapted to return the subset of method calls to the EJB server, and the servlet is further adapted to update the domain object graph, based on any change functions at the client that affected a state of a light-weight object within the light-weight object graph.

### Claim 32 (depends on 30)

The method of claim 30 wherein the object graph descriptor identifies at least one root object and at least one degree of traversal from the root object.

### Claim 33 (depends on 30)

The method of claim 30 wherein the instructions for creating a lightweight object graph include instructions for:
locating the root entity bean specified by the at least one root object in the domain object graph;
locating at least one related entity bean in the domain object graph, as specified by the degree of traversal; and
returning a first implementation of the light-weight class from which the root entity bean inherits and a second implementation of the light-weight class from which the related entity bean inherits.

### Claim 34 (depends on 30)

The method of claim 30 wherein transporting of the light-weight object graph includes serializing the light-weight object graph on the EJB server into a byte-stream, communicating the byte-stream to the client, and deserializing the byte-stream on the client.

### Claim 35 (depends on 30)

The method of claim 30 wherein the Java application is a Java graphical user interface application.

### Claim 36 (depends on 30)

The method of claim 30 wherein the code adapted to log a subset of method calls includes code for using a dynamic proxy.

### Claim 37 (depends on 36)

The method of claim 36 wherein the code adapted to log a subset of method calls includes code for using the dynamic proxy for receiving a method call, executing the method call on an object in the light-weight object graph, and determining if the object changed as a result of the method call.

### Claim 38 (depends on 30)

The method of claim 30 wherein executing a Java application on the client includes generating a container aware model adapted to allow the Java application to retrieve data from the light-weight objects embedded in the light-weight object graph.

### Claim 39 (depends on 38)

The method of claim 38 wherein executing a Java application on the client includes creating a form in communication with the light-weight object graph through the container aware model.

### Claim 40 (depends on 30)

The method of claim 30 wherein the domain object graph on the EJB server includes a collection of heavy-weight entity beans and the entity beans are created from:
a foundational light-weight object class specifying a set of states and a set of behaviors associated with a set of light-weight objects;
at least one specific light-weight object class specifying a second set of states and set of behaviors associated with the specific light-weight object class, the specific light-weight object class inheriting from the foundational light-weight object class; and
at least one instance of the at least one specific light-weight object class, the at least one instance including information corresponding to the first and second set of states.

### Claim 41

A computer-implemented method for executing an application on a client using a domain object graph hosted on an EJB server, the method comprising:
generating an object graph descriptor identifying at least one root object and at least one degree of traversal from the root object;
creating a light-weight object graph, based on the object graph descriptor, the light-weight object graph being a subset of the domain object graph on the EJB server; and
transporting the light-weight object graph to the client.

### Claim 42 (depends on 41)

The method of claim 41 wherein transporting the light-weight object graph includes serializing the light-weight object graph on the EJB server into a byte-stream, communicating the byte-stream to the client, and deserializing the byte-stream on the client.

### Claim 43 (depends on 41)

The method of claim 41 wherein creating a light-weight object graph includes:
locating the root entity bean specified by the at least one root object in the domain object graph;
locating at least one related entity bean in the domain object graph, as specified by the degree of traversal; and
returning a first implementation of the light-weight class from which the root entity bean inherits and a second implementation of the light-weight class from which the related entity bean inherits.

### Claim 44 (depends on 43)

The method of claim 43 wherein the first implementation and the second implementation are generated by an object provider.

### Claim 45 (depends on 40)

The method of claim 40 further including extending the light-weight object graph, based on an extension request from the client identifying an extension root and an extension degree of traversal, creating a light-weight version of the corresponding objects, and transporting the corresponding objects to the client.

### Claim 46 (depends on 40)

The method of claim 40 wherein the domain object graph on the EJB server includes a collection of heavy-weight entity beans and the entity beans are created from:
a foundational light-weight object class specifying a set of states and a set of behaviors associated with a set of light-weight objects;
at least one specific light-weight object class specifying a second set of states and set of behaviors associated with the specific light-weight object class, the specific light-weight object class inheriting from the foundational light-weight object class; and
at least one instance of the at least one specific light-weight object class, the at least one instance including information corresponding to the first and second set of states.

### Claim 47

A computer-implemented, object-oriented programming model for facilitating execution of an application on a client using data stored on an EJB server, the model including:
a foundational light-weight object class specifying a set of states and a set of behaviors associated with a set of light-weight objects;
at least one specific light-weight object class specifying a second set of states and set of behaviors associated with the specific light-weight object class, the specific light-weight object class inheriting from the foundational light-weight object class;
at least one instance of the at least one specific light-weight object class, the at least one instance including information corresponding to the first and second set of states; and
at least one entity bean including a third set of behaviors, the entity bean inheriting from the at least one instance.

### Claim 48

A method of resolving changes between a light-weight object graph located on a client and a domain object graph located on an EJB server, the method comprising:
monitoring a plurality of method invocations performed on the client that interact with the light-weight object graph;
logging a subset of method invocations of the plurality of method invocations that result in a change to the light-weight object graph in a stack;
transporting the stack to the EJB server; and
executing the method calls on the domain object graph.

### Claim 49 (depends on 48)

The method of claim 48 wherein transporting of the stack includes serializing the plurality of method invocations into a byte-stream, communicating the byte-stream to the EJB server, and deserializing the byte-stream on the EJB server.

### Claim 50 (depends on 48)

The method of claim 48 wherein the method invocations are executed on the EJB server using a session bean.

### Claim 51 (depends on 48)

The method of claim 48 wherein the monitoring step is performed using a dynamic proxy.

### Claim 52 (depends on 48)

The method of claim 48 wherein the monitoring step includes the dynamic proxy receiving a method invocation, the proxy executing the method invocation on an object in the light-weight object graph, and the proxy determining if the object changed as a result of the method invocation.
