Mechanism to cache references to Java RMI remote objects implementing the unreferenced interface
Abstract
A caching mechanism for JAVA RMI remote objects is provided. In order to efficiently implement a cache for these connection objects, the client JYM may hold a normal reference to the object while the connection is in use and for a period of time thereafter. A thread is used as a timer for each connection. After that period of time expires, only a weak reference is held by the client JVM and the connection may be garbage collected. The period of time maybe adjusted. A shorter time may be used to ensure responsiveness of the server JVM to memory demand and shutdown requests, while a longer time may be used to enhance the effectiveness of the caching mechanism by forcing connections to stay open longer after they are no longer being used and before they are automatically destroyed due to garbage collection.
Interactive Citation Constellation Global Citation Ranking
Interactive SVG Citation Constellation renders in Rust/WebAssembly. Prior art cited: 46 · Forward citations: 15.
Claims (3 — 1 Independent, 2 Dependent)
- Claim 1Independent Claim
A method, in a client, for managing connections to a server in a distributed environment, comprising: establishing a connection to a server; responsive to conclusion of a communication process using the connection, starting a timer; maintaining a normal reference to a connection object for the connection; responsive to conclusion of a predetermined time period measured by the timer, maintaining a weak reference to the connection object; and periodically destroying connection objects maintained by weak references.
- Claim 2Depends on #1
The method of claim 1 , further comprising: determining whether a normal reference to the connection object exists; and reusing the connection if the normal reference exists.
- Claim 3Depends on #2
The method of claim 2 , further comprising restarting the timer.
Technical Overview & Description
Full multi-page specification text is archived at the issuing office. Read complete official specification ↗
Cited By — Indexed Forward Citations (15 of 15 total)
References Cited — Backward Prior Art (46)
Non-Patent Literature (5)
- Bagguley et al. "Advanced C++ Programmer can't tolerate JAVA" Google Groups comp.lang.java.help; Dec. 7, 1998.
- Landis et al. (ObjectStore PSE: a Persistent Storage Engine for Java); Object Design, Inc.; p. 1-11.
- Price, D.W.; Rudys, A.; Wallach, D.S.; "Garbage collector memory accounting in language-based systems." 2003 Symposium on Security and Privacy, May 2003, pp. 263-274.
- Weinstein et al. "Writing a JDBC driver-tutorial needed" Google Groups comp.lang.java.databases; Jan. 18-29, 1999.
- Wollrath et al. (A Distributed Object Model for the Java System); Sun Microsystems, Inc.; USENIX Jun. 1996, p. 1-14.