Originally posted by: SystemAdmin
The Resource Registry can be used to specify variables in your maps. Why would you want to do this? Perhaps your directory structure is different among the different servers you run the maps on (as an example you might have a different directory structure among your test, train, integration and production servers). Rather than having to go into every map and change each path manually, you can create variables in the resource registry which can be used in the map. See the documentation for all the places you can place such variables.
Once you create the variables and their values for each environment and use them in a map, the map server resolves their values at run time. See the documentation for where you have to specify the resource registry file to be used.
Basically specifying variables and their values for particular virtual servers in the Resource Registry allows you to save time when you have variable information among different systems or environments that you run in.
Just as a simple example, paths between Windows and UNIX are radically different. Data files used in TX might not reside in the current directory so you would have to specify some sort of path to get to the file (or to put it somewhere). In this case you would have to change the map when deploying to UNIX because, at minimum, the slashes will go the wrong way ( \ vs / ). Having a variable like %data_dir% would be very useful in this case. The different virtual servers would have different values coded for this variable in the Resource Registry.
Hope that helps.
#IBM-Websphere-Transformation-Extender#IBMSterlingTransformationExtender#DataExchange