SAS 9.1.3 Integration Technologies » Administrator's Guide


SAS Foundation Services
Understanding
Service Deployments
Service Deployment Configuration
Managing Service Deployments
Defining
Importing
Exporting
Duplicating
Redistributing
Installing and Running Foundation Services as a Windows Service
Understanding How Applications
Deploy Foundation Services
Locate Services
Scenario: Stand-alone application
Scenario: Remote-accessible Services
Scenario: Local and Remote-accessible Services
Share Foundation Services
Modifying Service Configurations
Event Broker Service
Events and Process Flows
Modifying the Configuration
Creating Events and Process Flows
Information Service
Logging Service
Pattern Layouts
Session and User Service
Monitoring Applications
Foundation Services

Scenario: Stand-alone Application

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: A foundation service-enabled 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:

  1. Uses the service loader to query service deployment metadata from either a SAS Metadata Server or XML file (that contains exported metadata).
  2. Uses the service loader to instantiate services defined in the service deployment metadata and registers them with the local Discovery Service.
  3. Uses the local Discovery Service to find services based upon their service interfaces and optionally, their 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.

Figures 1 and 2 show standalone applications that access their service deployments from a SAS Metadata Repository or XML file respectively. Figure 3 shows two standalone Web applications that access their service deployments from a SAS Metadata Repository and each deploy their own local services for their own exclusive use.

Figure 1: Standalone Application accessing Local Deployment from a SAS Metadata Server

Diagram showing how Applications Deploy, Access and Use Foundation Services

Figure 2: Standalone Application accessing Local Deployment from an XML File

Diagram showing how Applications Deploy, Access and Use Foundation Services

Figure 3: Two Standalone Web Applications accessing Local Deployments from a SAS Metadata Repository

Diagram showing how Applications Deploy, Access and Use Foundation Services