Deployment Descriptor SharedComponent Element

  GigaSpaces 5.X

Documentation Home
Quick Start Guide
Release Notes

Previous release

  Search Here
Searching GigaSpaces Platform 5.X Documentation

                                               

Summary: The SharedComponent element is a construct that allows a class to be dynamically installed into the GSC's ComponentLoader.

The SharedComponent element is a construct that allows a class to be dynamically installed into the GSC's ComponentLoader, having the class loaded by the GSC's common classloader, making the class accessible to all services instantiated by the GSC. To understand what this means it is important to understand the Service Grid ClassLoader Hierarchy.

The shared component concept was originally created to deal with the issue of loading and sharing native libraries, but other uses can be thought of. Examples:

  • Creating a shared blackboard for local communications.
  • Creating transient PlatformCapabilities.
  • Creating a common capability to share across service instances like a Jxta peer or a database connection

Declaring a shared component is done as part of the Resources element. Example:

<ImplementationClass>com.foo.FooImpl
    <Resources>
        <JAR>foo.jar</JAR>
        <SharedComponent>
            <ClassName>com.foo.component.FooComponent</ClassName>
            <JAR>foo-component.jar</JAR>
       </SharedComponent>
    </Resources>
</ImplementationClass>

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