A stand-alone application deploys
services locally, uses the services, and terminates the services when
they are no longer needed. If an application does not need to interact
with any other applications, then it can be a stand-alone application
with its own exclusive local service deployment. Services locally
deployed by this application are not available to any other application.
In addition, no remote services are available.
Note: An application can be either
a standard client application or a Web client application that runs
in a servlet container.
To deploy local services
for its own exclusive use, the application does the following:
-
uses the service loader
to query service deployment metadata from either a SAS Metadata Server
or XML file (that contains exported metadata)
-
uses the service loader
to instantiate services that are defined in the service deployment
metadata and registers them with the local Discovery Service
-
uses the local Discovery
Service to find services according to their service interfaces and
optional service attributes
When the application
no longer needs the services or is ready to exit, it terminates the
local Discovery Service. The local Discovery Service then destroys
all locally instantiated services.
The following figure
shows a stand-alone application that accesses a service deployment
from a local SAS Metadata Repository:
The following figure
shows a stand-alone application that accesses a service deployment
from an XML file:
The following figure
shows two stand-alone Web applications that access their service deployments
from a SAS Metadata Repository and each deploy their own local services
for their own exclusive use: