By combining options,
you can configure more complex pre-loads. The two options add the
counts arithmetically to determine how many services are actually
loaded. Internally, the DataFlux Data Management Server builds a list
of all of the services that it needs to pre-load and, for each service,
sets the total count.
The following two example
options illustrate the logic of how this works:
DMSERVER/SOAP/DATA_SVC/PRELOAD_ALL = 2
DMSERVER/SOAP/DATA_SVC/PRELOAD = 2:svc1.ddf -1:subdir1\svc2.ddf -2:svc3.ddf
The first option instructs
the DataFlux Data Management Server to pre-load a total of two instances
of all existing services. The second options modify the first as follows:
-
Two additional counts of svc1.ddf
are added, for a total of four instances. The counts are added together,
and the total is the number of instances that DataFlux Data Management
Server tries to preload.
-
The svc2.ddf file, which is found
in the subdir1 subdirectory, has a -1 count. This produces a total
count of one for svc2.ddf.
-
For the svc3.ddf file, there is
a combined total count of zero, so this service is not loaded at all.
The count value must be greater
than zero for a service to be pre-loaded.
Some important points
to remember:
-
DataFlux Data Management Server
attempts to pre-load a single instance of all requested services before
trying to pre-load more instances, if more than one instance is specified.
-
The service element can include
the path to the service, relative to the root of the services directory.
For example, 1:subdir1\svc2.ddf
specifies
one instance of service svc2.ddf, which is located in the subdir1
subdirectory.
-
The count value
can be a negative value. This is meaningful only when both configuration
options are used together.
-
Pre-loading stops when the Data Management Server has attempted to pre-load all required instances (successfully or not),
or if the limit on the number of services has been reached. Depending on whether a SOAP or WLP server is used, the limit can
be specified by using one of the following configuration options: DMSERVER/SOAP/DATA_SVC/MAX_NUM
, or DMSERVER/WLP/DATA_SVC/MAX_NUM . These configurations will default to 10 if a number is not specified.