Install ServiceManager Deploying ServiceManager Server Configuring Instance Selection
Â
It is possible to configure ServiceManager to provide its users with the ability to specify which ServiceManager instance they should connect to. By default the standard deployment does not present this option; all connections are against the ServiceManager/ServiceOptimizer instance specified in URL entered within the browser (for example http://spower:8080/SERVICEManager).
Â
service_manager.properties Modifications
To enable this functionality a new entry must be specified within the service_manager.properties file for each of the instances in question
Name | Default Value | Â Description | Examples |
---|---|---|---|
instance.selection.file | not defined | Specifies the location of the instance selection data file. If this property is not defined, or specifies an invalid file location, then this ServiceManager instance will revert to its default operation (of not presenting the user with an Instance Selection control).  If the definition is of a fully qualified pathname (such as If the definition solely gives the filename, then the file is assumed to be located within the |
This example specified the file as svm_instance_config.xml that should contain a list of ServiceManager/ServiceOptimizer instances available to the user. The file
In this example the list of available instances is specified by as a fully qualified pathname. In this case this instance definition file could be shared by multiple ServiceManager instances (assuming the mounted S-drive is available to all instances). Note the use of the escape character "\" when specifying the drive name and directory delimiters. |
Â
Instance Definition List
The instance definition file is specified using XML according to the DTD opposite.
This file may contain an arbitrary number of instance definitions, where each definition must contain a name and valid URL. Note that duplicate entries (by way of name) are discarded.
In the example, two ServiceManager instances are defined, the first with a description the second without. If a description is specified then it is displayed within the "Instance Selection" control displayed within the logon page.
Note that each element can have the following maximum sizes: | name | < 40 |
 | url | < 256 |
 | description | < 120 characters |
svm_instance_config.xml
is supplied with the ServiceManager release.<!ELEMENT SERVICEManager:InstanceConfig (instance*)> <!ELEMENT instance (name, url,description?)> <!ELEMENT name (#CDATA)> <!ELEMENT url (#CDATA)> <!ELEMENT description (#CDATA)>
<?xml version="1.0"?> <SERVICEManager:InstanceConfig> <instance> <name>Production</name> <url>http://spprod:8080/SERVICEManager</url> <description>This is the production SERVICEManager system for version 9.2.0</description> </instance> <instance> <name>Test</name> <url>http://sptest:8080/SERVICEManager</url> </instance> </SERVICEManager:InstanceConfig>
Â
Multi-Instance ServiceManager Logon Page
Assuming correct setup, whenever the user specifies the URL for any one of the multiple instances with an instance.selection.file
 specified, the user will be presented with a logon page similar to the following:
Â
Having selected the required instance the browser is then redirected to the appropriate ServiceManager instance.