[Contents] [Prev] [Next] [Index] [Report an Error] [No Frames]


Renaming a VTA

When multiple VTA configurations are deployed on the same application server, each VTA must have a unique JNDI name. You can use a script to change the JNDI name of a VTA by generating a new EAR file in the /opt/UMC/conf/vta directory based on the renaming rules specified in the /opt/UMC/conf/vta/rules.xml file.

Renaming the VTA

To rename a VTA, specify the absolute path of the EAR file by executing the rename command in the /opt/UMC/conf/vta folder:

./rename <earFilePathName> [<rulesFilePathName>] 

where <earFilePathName> is the absolute pathname of the EAR file that you want to rename, and <rulesFilePathName> is the absolute pathname of the renaming rules file.

You must specify <rulesFilePathName> if you change the default location from the /opt/UMC/conf/vta file or you are using a different rules file. By default, the renaming rules rename the Quota VTA called quotavta.ear to bucketvta.ear.

cd /opt/UMC/conf/vta 
./rename /opt/UMC/conf/vta/quotavta.ear 

Modifying the Renaming Rules

To modify the rules used to rename a VTA, edit the /opt/UMC/conf/vta/rules.xml file. For example, you can substitute different oldString and newString attributes for the <replace> element values and save the new values to a new file that you specify as the renaming rules file for the rename command.

For information about modifying the renaming rules, see the /opt/UMC/conf/vta/rules.xml file. This file contains details about the replacement values for the VTA names.



[Contents] [Prev] [Next] [Index] [Report an Error] [No Frames]