The class loader hierarchy in the Service Grid has been created to enable a platform oriented framework conducive towards creating a layered product. The resulting capabilities allow the declaration of JARs that are added to a CommonClassLoader, making the classes accessible by all ClassLoader instances that delegate to the CommonClassLoader. The ClassLoader hierarchy for the Service Grid is as follows:
AppCL
|
CommonCL (http:// URLs of common JARs)
+
|
+-------+-------+----...---+
| | |
Service-1CL Service-2CL Service-nCL
AppCL – Contains the main() class of the container. Main-Class in manifest points to com.gigaspaces.start.SystemBoot.
Classpath: gs-boot.jar, start.jar, jsk-platform.jar
Codebase: none
CommonClassLoader – Contains the common GigaSpaces (Service Grid) and Jini technology classes (and other declared common platform JARs) to be made available to its children.
Classpath: Common JARs such as gs-lib.jar.
Codebase: Context dependent. The codebase returned is the codebase of the specific child CL that is the current context of the request.
Service-nCL – Contains the service specific implementation classes.
Classpath: serviceImpl.jar
Codebase: "serviceX-dl.jar gs-lib-dl-dl.jar jsk-lib-dl.jar"
We need your help to improve this wiki site. If you have any suggestions or corrections, write to us at techw@gigaspaces.com. Please provide a link to the wiki page you are referring to.
Add Comment