Specifying promotion environments
You use the <environments> element to specify the details of the environments to which you want to promote WSRR entities. As part of the environment information, you supply details of the target WSRR instance associated with that environment.
<environments>
<environment>
... elements specifying the details of a promotion environment ...
</environment>
.
.
.
<environment>
... elements specifying the details of a promotion environment ...
</environment>
</environments>
Each <environment> element specifies
the details of one promotion environment.Attribute | Description |
---|---|
name | A name that uniquely identifies the promotion environment. |
<promotion>
This element provides details of the promotion, and is required.Element | Description |
---|---|
<type> | The type of promotion that is performed. This element must be
set to one of the following values:
|
<filepath> |
The directory path to the file used to store the promotion data. You can specify a WebSphere® Environment variable (which is configured within WebSphere Application Server in the Node scope for each Node within the system). This variable is used to determine the filepath used to store the promotion data. The format of this variable is ${variable_name} where variable_name is a valid WebSphere Environment variable name. The path specified either directly or by using an WebSphere Environment variable must be valid for the operating system you are using, and must end in "/" or "\". This element is required if the value of the <type> element is manual. |
<filename> | The name of the file used to store the promotion data. This
element is required if the value of the <type> element is
manual. When a promotion is performed, if the file name already exists on the file system, a time stamp is added to the file. The time stamp is in the format yyyyMMddHHmmssSSS. If you include the special tag %TS% in the file name, a time stamp is placed at this position, regardless of whether or not the file already exists. If the special tag is not included, and the file already exists, the time stamp is added at the end of the file name before the file extension. |
<promotion>
<type>manual</type>
<filepath>c:/temp/</filepath>
<filename>promote.zip</filename>
</promotion>
<promotion>
<type>sync</type>
</promotion>
In
this example, a time stamp is added to the front of the file name:
<promotion>
<type>manual</type>
<filepath>c:/temp/</filepath>
<filename>%TS%promote.zip</filename>
</promotion>
In
this example, a WebSphere Environment variable
called MY_PROMOTION_DATA_DIR (which is configured in WebSphere Application Server as having a value of /tmp/promotion_data/) is used to
determine the filepath that will be used to store the data. With this configuration the data
will be stored in a file /tmp/promotion_data/promote.zip on the WebSphere Application Server
system.<promotion>
<type>manual</type>
<filepath>${MY_PROMOTION_DATA_DIR}</filepath>
<filename>promote.zip</filename>
</promotion>
<servers>
This element provides details of the servers to which content is promoted, and is required if the value of the <type> element is either sync or async.Element | Description |
---|---|
<server> | Each <server> element provides details of one server to
which content is promoted. You must specify at least one <server> element. The
<server> element has the following attributes:
|
In a cluster environment, if all cluster members are specified, WSRR will succeed in promoting to a cluster member if at least one of the servers is running, eliminating a single point of failure. There is no guarantee of any particular order in which the server list will be processed. WSRR might try to connect first to any of the servers in the list, and try to connect to any of the others in the list if the first server is not available.
<servers>
<server name="myServer1.hursley.ibm.com" port="2809"/>
</servers>
<servers>
<server name="myClusterServer1.hursley.ibm.com" port="9809"/>
<server name="myClusterServer2.hursley.ibm.com" port="9809"/>
<server name="myClusterServer3.hursley.ibm.com" port="9809"/>
</servers>
<security>
This element provides security information for the WebSphere Application Server or cluster to which content is promoted, and is required if security is enabled. If you omit the <security> element or the enabled attribute, it is assumed that security is disabled.Attribute | Description |
---|---|
enabled | Specifies whether security is enabled on the server or
cluster. The value of this element must be one of the following:
Note that if you supply a value of "false", any subelements specified in the <security> element are ignored. |
Element | Description |
---|---|
wsrrUser | The user ID for accessing the server or cluster. This element is required. The user must be listed in the J2EE Administrator role on the target WSRR |
wsrrRealm | The name of the target realm. For example, if the target WebSphere Application Server instance is configured to use a Lightweight Directory Access Protocol (LDAP) server as its user registry, the name of the target realm is the <hostname>:<port>, where <hostname> is the host name or IP address of the LDAP server and <port> is the port on which the LDAP server is listening. If the target WebSphere Application Server instance is configured to use local operating system user registry, then the target realm is the computer name. If the target WebSphere Application Server instance is configured to use Federated repositories, then the realm is the target server Realm name that was specified for Federated repositories. This element is optional and needs only be configured if the target realm is different to the current realm, that is, the target server is configured to use a different user registry to the current server. Note: If the current and target realms are different, you must
disable transaction security on your WebSphere Application Servers; see Configuring the Transaction Service for
details.
|
wsrrPassword | The password for accessing the server or cluster. This element is required. |
<security enabled="true">
<wsrrUser>user1</wsrrUser>
<wsrrPassword>password1</wsrrPassword>
</security>
<security enabled="true">
<wsrrUser>user1</wsrrUser>
<wsrrRealm>server1:389</wsrrRealm>
<wsrrPassword>password1</wsrrPassword>
</security>
Example of a complete <environment> element
This example defines a "Development" promotion environment. If a WSRR entity undergoes a life-cycle transition that is associated with this environment in the <transitions> element, that entity is promoted to the WSRR instance on the server myServer.hursley.ibm.com at port 2809, using the specified authentication details.<environment
name="http://www.ibm.com/xmlns/prod/serviceregistry/6/1/GovernanceProfileTaxonomy#Development">
<promotion>
<type>sync</type>
</promotion>
<servers>
<server name="myServer.hursley.ibm.com" port="2809"/>
</servers>
<security enabled="true">
<wsrrUser>user1</wsrrUser>
<wsrrPassword>password1</wsrrPassword>
</security>
</environment>