[535] in java-interest
Re: Cannonical name for JAVA classes - further thoughts
daemon@ATHENA.MIT.EDU (jim frost)
Wed Jun 28 20:30:38 1995
To: drgeorge@ilt.com (Dr_George_D_Detlefsen)
Cc: java-interest@java.sun.com, java-porting@java.sun.com
In-Reply-To: Your message of "Wed, 28 Jun 1995 13:43:06 EDT."
<9506282043.AA05027@venus>
Date: Wed, 28 Jun 1995 20:18:49 -0400
From: jim frost <jimf@world.std.com>
|This morning in the shower, it occurred to me that a good extension
|of the classloader would be to check the first component of the
|class name for a match against the DNS top level domains, ie. com,
|edu, us, jp, uk, .... If there was a match, it would search the
|DNS space for the longest string of name components that a hostname
|lookup succeded for. It would then make a TCP connection to the
|'javad' daemon on a well known port on that host. It would then
|send the remaining portion of the class name to the 'javad', which
|would then look up the class in its directory structure and send
|the .class file back thru the TCP socket. This would give world wide
|access to reuseable class libraries for the cost of implementing
|a extension to 'hotjava.src/src/share/java/runtime/classloader.c'
|and a relatively simple 'javad' daemon process.
This makes you dependent on the remote class implementations'
stability. This kind of dependence is what has killed cross-vendor
component object systems so far -- nobody can really trust the other
guy not to change something important.
Otherwise it's a cool idea, although I'd use a fixed root rather than
requiring you to know all of the base domains (which change
regularly), eg:
remote.com.std.world.myclass
You might also consider a mangled naming scheme so you don't have to
spend a lot of time figuring out what the different parts of the
package name are, eg:
remote.3.world.std.com.myclass
In this example "3" gives the number of subcomponents which are part
of the hostname.
jim frost
jimf@world.std.com
-
Note to Sun employees: this is an EXTERNAL mailing list!
Info: send 'help' to java-interest-request@java.sun.com