Method and system for on demand java resources
First Claim
Patent Images
1. A method comprising:
- modifying a ClassLoader such that at a runtime of an application running in a first client, the ClassLoader functions as a Class File Listener that monitors all of the Class Files and resources that are actually loaded by the application at runtime;
using the monitored Class Files and resources to dynamically build a list of named resources and associated data that are used by the application;
transmitting a notification message from an offline capable Class Loader in a first client, the notification message stating that the offline capable Class Loader is operational and online with other clients, wherein the notification message includes the dynamically built resource list of named resources and associated data that are used by the application;
listening at the first client for other notification messages from the other clients, wherein a dynamically built resource list is created in the first client of resources and associated data that are stored in the other clients; and
in response to communication between the first client and a primary file server being disrupted, responding, by the first client, to a request for a class file in the application running in the first client by a) sending the requested class file to the application from the first client, or b) if the requested class file is stored in the first client, consulting the resource lists sent from the other clients and, if the requested resource is found, sending the requested class file from another client to the first client, or c) if, after determining that the requested resource is not available from the first client or the other clients, sending a “
resource not found”
message to the application, wherein a collaboration of Class Loaders from the first and other clients supply the requested class files to the first client upon communication between the first client and the primary file server being disrupted.
2 Assignments
0 Petitions
Accused Products
Abstract
A method and system for using a Java Custom ClassLoader to dynamically build and maintain a list of Java Class Files and resources that are used by applications that run in Point Of Sale (POS) terminals or other POS devices. The Java Class Files and resources are ordinarily obtained from a file server known as a controller. If communication between the POS terminal and the controller is lost, other POS devices dynamically collaborate in a “self healing” process to find and provide the required resources (e.g., Java Class Files) to run the POS terminal in an off-line mode. The present system is thus autonomic, self-learning and self-healing.
47 Citations
20 Claims
-
1. A method comprising:
-
modifying a ClassLoader such that at a runtime of an application running in a first client, the ClassLoader functions as a Class File Listener that monitors all of the Class Files and resources that are actually loaded by the application at runtime;
using the monitored Class Files and resources to dynamically build a list of named resources and associated data that are used by the application;
transmitting a notification message from an offline capable Class Loader in a first client, the notification message stating that the offline capable Class Loader is operational and online with other clients, wherein the notification message includes the dynamically built resource list of named resources and associated data that are used by the application;
listening at the first client for other notification messages from the other clients, wherein a dynamically built resource list is created in the first client of resources and associated data that are stored in the other clients; and
in response to communication between the first client and a primary file server being disrupted, responding, by the first client, to a request for a class file in the application running in the first client by a) sending the requested class file to the application from the first client, or b) if the requested class file is stored in the first client, consulting the resource lists sent from the other clients and, if the requested resource is found, sending the requested class file from another client to the first client, or c) if, after determining that the requested resource is not available from the first client or the other clients, sending a “
resource not found”
message to the application, wherein a collaboration of Class Loaders from the first and other clients supply the requested class files to the first client upon communication between the first client and the primary file server being disrupted. - View Dependent Claims (2, 3, 4, 5, 6)
-
-
7. A method comprising:
creating a Custom Class Loader from a Base Class Loader in a Java environment, wherein the Custom Class Loader is able to load Java class files either using a Java “
import”
mechanism or a Java Class.forName( ) mechanism.- View Dependent Claims (8, 9, 10, 11, 12, 13)
-
14. A computer program product, residing on a computer usable medium, comprising:
program code for creating a Custom Class Loader from a Base Class Loader in a Java environment, wherein the Custom Class Loader is able to load Java class files either using a Java “
import”
mechanism or a Java Class.forName( ) mechanism.- View Dependent Claims (15, 16, 17, 18, 19, 20)
Specification