Deployment Descriptor Codebase Element

  GigaSpaces 5.X

Documentation Home
Quick Start Guide
Release Notes

Previous release

  Search Here
Searching GigaSpaces Platform 5.X Documentation

                                               

Summary: The <Codebase> element specifies where service classes and resources can be (down)loaded from.

Overview

The Codebase element specifies where service classes and resources can be (down)loaded from. The Codebase element also has an attribute called "Adaptive". The Adaptive="yes" declaration triggers the Service Grid to change the codebase in the following way :

  1. If the service has the adaptive codebase property set, and the codebase is http based, the GSM will check if the code can be served from the codeserver that has been started by the GSM. If the jars required to create the service can be served by the codeserver coupled with the GSM, adjust the codebase in the ServiceElement to reflect the new codeserver address. So what does this really mean? Basically it means that if the GSM can serve up the jars the service needs, it will adjust the service's codebase to be able to provision the services. This is needed if the codeserver that was used to originally access the jars goes down.
  2. The GSC will also attempt to adjust the service's codebase. The GSC will determine if the codebase can be served from the codeserver that has been started by the GSC. This means if the GSC can serve up the the download jars (the xx-dl.jar) it will adjust the codebase accordingly.

Determination of "serving" the jars from either of the codeservers is done by computing a message digest for the jars (ComputeHttpmd). If the message digest of the jars local to the GSM and/or GSC match the message digest of the original URL, then the determination is made to serve the code from the coedserver the utility (GSM/GSC) has created.

RELATED TOPICS

Declaring Elements Globally in Deployment Descriptor
Declaring Service UI in Deployment Descriptor
Deployment Descriptor Codebase Element
Deployment Descriptor DeploymentSchedule Element
Deployment Descriptor Parameters and Configuration Elements
Deployment Descriptor SharedComponent Element
Deployment Descriptor SLA Element
deploy - Service Grid CLI
Fixed and Dynamic ServiceBean ProvisionType
Injecting Deployment Descriptor Properties into POJOs
POJO Lifecycle in Service Grid
Proactive Cache
redeploy - Service Grid CLI
Rio OperationalString
Service Associations
Service Deployment Descriptor
Service Grid ClassLoader Hierarchy
undeploy - Service Grid CLI
Using Service Grid to Deploy Partitioned Space
Using Service Grid to Deploy Partitioned Space with Backup
Using Service Grid to Deploy Replicated Space
Using Service Grid to Deploy Space
Using Service Grid to Deploy Spring Applications
Using System Properties for Deployment Descriptor Element Values

Wiki Content Tree


Your Feedback Needed!

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.

Labels