Tasks to configure the Dynamic Service Activator are:
The general properties for Dynamic Service Activator determine the behavior of the application rather than the relationship between a gateway client and the application.
To configure general properties for Dynamic Service Activator:
Set this value only if you want gateway clients to have unrestricted access to all methods and scripts. The client still must provide a valid client name and password, and the client name must be configured to access at least one method (for Dynamic Service Activator or PCMM) to access methods of that type. By default, gateway clients have access only to methods and scripts that you specify in the configuration. Access control should be disabled only for troubleshooting purposes.
You configure which types of information identify subscribers to the SAE. The subscriber types that you can configure are the same subscriber types that you can use in applications created with the SAE CORBA remote API.
To configure subscriber types:
- [edit shared dsa group trial configuration subscriber-types name]
- user@host# set subscriber-id-type (address | dn | login-name | interface-name | interface-index | address-interface-name
| primary-user-name | session-handle)
where:
- [edit shared dsa group trial configuration subscriber-types name]
- user@host# set nic-proxy nic-proxy
For example:
You configure the encoding key and encoding algorithm for the session handles to determine how the session handle URI is constructed. Session handles are encoded when returned by SOAP calls for the service provider’s privacy and to prevent service provider partners who operate SOAP clients from managing subscribers with whom they do not have a relationship.
To configure encoding for session handles:
You create a NIC proxy for each subscriber type to be configured. The name of the NIC proxy must match the name configured for the NIC proxy namespace.
Subscriber types that have different subscriber ID types can use the same NIC proxy. For example, a subscriber type configured as SubscriberType1 that has a subscriber ID type of interface-name, and a subscriber type configured as subscriberType2 that has a subscriber ID type of interface-index can both use the same NIC proxy. Likewise, a subscriber type configured as SubscriberType1 and a subscriber type configured as subscriberType2 that both have a subscriber ID type of address can use the same NIC proxy.
To configure NIC proxies:
For information about configuring NIC proxies, see Configuration Statements for NIC Proxies.
Configuring access to methods and scripts involves adding methods, scripts, and clients to the configuration and configuring access properties between each client and each method or script.
![]() |
Note: Client profiles are cached by Dynamic Service Activator for 30 minutes. If you change the password or role of a client that has been used within the last 30 minutes, it can take up to 30 minutes before these changes take effect. When permissions are configured, roles are assigned to application server user objects automatically. The first time you add a method or script for a client, the DSA role is added to the corresponding application server user, and when the last method or script is deleted, the DSA role is removed from the corresponding user. Only role and password changes take up to 30 minutes to take effect. If you do not want to wait 30 minutes for the changes to take effect, restart the Web application server. |
Dynamic Service Activator interacts with the Web application server to determine whether a gateway client has access to a method or script. The name and credentials, such as a password, that are used to authenticate the gateway client are configured on the Web application server as user accounts.
Access constraints are regular expressions that the arguments for the method or script in the SOAP request must match. If the arguments for the method or script in a particular SOAP request do not match these regular expressions, then Dynamic Service Activator rejects the request.
Use the following configuration statements to configure methods and access properties between each client and each method:
- shared dsa group name configuration
method (commit-resources | invoke-gateway-extension | invoke-script
| query-available-services | query-contexts | release-resources |
subscriber-activate-service | subscriber-deactivate-service | subscriber-login
| subscriber-logout |subscriber-modify-service | subscriber-read-subscription
| subscribers-read | subscribers-read-subscriber) constraints argument-index
Configuring Methods
To configure methods for Dynamic Service Activator:
- [edit]
- user@host# edit shared dsa group name configuration method (commit-resources | invoke-gateway-extension | invoke-script | query-available-services
| query-contexts | release-resources | subscriber-activate-service
| subscriber-deactivate-service | subscriber-login | subscriber-logout
|subscriber-modify-service | subscriber-read-subscription | subscribers-read
| subscribers-read-subscriber)
where:
For example:
- [edit shared dsa group trial configuration method subscriber-read-subscription]
- user@host# set constraints argument-index value
where:
For information about the regular expression syntax, see http://java.sun.com/j2se/1.4.2/docs/api/java/util/regex/Pattern.html.
For example:
Configuring Access to Methods
To configure access to methods for Dynamic Service Activator:
If you disable the access control mechanism and you configure the Web application server to authenticate clients with any username and password, Dynamic Service Activator sends the text string “anonymous client” as the first argument to the SAE’s Java scripts interface module.
For example:
- [edit shared dsa group trial configuration client name permissions method subscriber-read-subscription]
- user@host# set constraints argument-index value
For example:
Use the following configuration statements to configure scripts and access properties between each client and each script:
Configuring Scripts
To configure scripts for Dynamic Service Activator:
- [edit shared dsa group name configuration
script name]
- user@host# set constraints argument-index value
where:
For information about the regular expression syntax, see http://java.sun.com/j2se/1.4.2/docs/api/java/util/regex/Pattern.html.
For example:
Configuring Access to Scripts
To configure access to scripts:
If you disable the access control mechanism and you configure the Web application server to authenticate clients with any username and password, Dynamic Service Activator sends the text string “anonymous client” as the first argument to the SAE’s Java scripts interface module.
- [edit shared dsa group trial configuration client name permissions script name]
- user@host# set constraints argument-index value
For example:
You can restrict the service sessions to which a gateway client has access. If you do not restrict access, the client has access to all service sessions.
To control the service sessions to which a gateway client has access:
You can control the configured attributes to which a gateway client has access. If you do not configure the client’s access to attributes, all configured attributes are allowed.
To control the attributes to which a gateway client has access:
If you disable the access control mechanism, then the client has no restrictions on access to the configured attributes.
- [edit shared dsa group trial configuration client name permissions attributes]
- user@host# set service [service...]
Set this value only if you want gateway clients to have restricted access to configured attributes. By default, all configured attributes are allowed. If you do not want to allow access to any of these attributes, set this value to none.
- [edit shared dsa group trial configuration client name permissions attributes]
- user@host# set subscription [subscription...]
Set this value only if you want gateway clients to have restricted access to configured attributes. By default, all configured attributes are allowed. If you do not want to allow access to any of these attributes, set this value to none.
- [edit shared dsa group trial configuration client name permissions attributes]
- user@host# set subscriber [subscriber...]
Set this value only if you want gateway clients to have restricted access to configured attributes. By default, all configured attributes are allowed. If you do not want to allow access to any of these attributes, set this value to none.
The SAE communicates with Dynamic Service Activator through the Java Message Service (JMS) adapter plug-in. This SAE plug-in sends SAE tracking events to Dynamic Service Activator.
To configure the JMS adapter plug-in:
If you want to configure JMS adapter plug-in features not available at the basic editing level, set the editing level to advanced or expert and use the CLI Help to obtain information about statement options.
When the SAE sends tracking events to Dynamic Service Activator, Dynamic Service Activator can publish events to external SOAP applications used by content service providers. Events are published according to the configured event subscription. Tasks to configure event subscriptions are:
Dynamic Service Activator can publish subscriber, service session, and interface events to external SOAP applications.
To configure the external SOAP application to which Dynamic Service Activator can publish events:
where application-id identifies the external SOAP application.
You can configure the event subscriptions owned by external SOAP applications. The event subscription defines a set of events, and the attributes in those events, that are published to the external SOAP application.
To configure event subscriptions:
- [edit]
- user@host# edit shared dsa group trial configuration
client name application application-id event-subscription event-subscription-name
where event-subscription-name is the arbitrary identifier of the event subscription.
- [edit shared dsa group trial configuration client name application application-id event-subscription event-subscription-name]
- user@host# set event-type-filter [(user-start | user-interim | user-stop | service-start
| service-interim | service-stop | interface-start | interface-interim
| interface-stop)...]
Use the following configuration statements to configure logging destinations for Dynamic Service Activator:
- shared dsa group name configuration
logger name file {
- filter filter;
- filename filename;
- rollover-filename rollover-filename;
- maximum-file-size maximum-file-size;
- }
- shared dsa group name configuration
logger name syslog {
- filter filter;
- host host;
- facility facility;
- format format;
- }
Configuring Logging Destinations to Store Messages in a File
To configure logging destinations to store log messages in a file:
For more information about configuring properties for the logging destination, see Configuring a Component to Store Log Messages in a File (SRC CLI).
Configuring Logging Destinations to Send Messages to the System Logging Facility
To configure logging destinations to send log messages to the system logging facility:
For more information about configuring properties for the logging destination, see Configuring System Logging (SRC CLI).