Configuration data for UDDI Utility Tools is in a configuration properties file, which describes the runtime environment, UDDI and database locations and access information, logging information, security configuration, entity definition file location, and other flags to control whether referenced entities can be imported, overwritten, or both.
A sample configuration properties file, UDDIUtilityTools.properties, is supplied with UDDI Utility Tools. By default, this file is in the app_server_root/UDDIReg/scripts directory. If you do not specify a properties path, by default, the configuration properties file is searched for in the current directory.
C:\temp\definitions\entities01.xmlbecomes
C: emp\definitions\entities01.xml
The following example shows the sample configuration properties file.
############################################## # Runtime environment # # (if invoking using java -jar...) # # "X Y" required around paths with spaces. # # Replace WAS_HOME with your WebSphere # # Application Server home path. # # Replace DB2_HOME with the locations of DB2 # # db2java.zip is for DB2 - replace this with # # appropriate database driver file. # ############################################## classpath=.;WAS_HOME/UDDIReg/scripts/UDDIUtilityTools.jar; WAS_HOME/plugins/com.ibm.ws.runtime.jar;WAS_HOME/plugins/com.ibm.uddi.jar; WAS_HOME/lib/j2ee.jar;"DB2_HOME/SQLLIB/java/db2java.zip" ############################################## # SOAP entry points for source UDDI # ############################################## fromInquiryURL=http://localhost:9080/uddisoap/inquiryapi fromGetURL=http://localhost:9080/uddisoap/get ############################################## # SOAP entry points for target UDDI # ############################################## toInquiryURL=http://localhost:9080/uddisoap/inquiryapi toPublishURL=http://localhost:9080/uddisoap/publishapi ############################################## # UDDI registry user information # # # # Note: This information must match the user # # information that was used to publish the # # entities on the target UDDI registry. # ############################################## userID=UNAUTHENTICATED password=NONE ############################################## # Configuration for destination UDDI DB # ############################################## dbDriver=COM.ibm.db2.jdbc.app.DB2Driver dbUrl=jdbc:db2:uddi30 dbUser=db2admin dbPasswd=db2admin ############################################## # Security provider configuration # ############################################## # Indicates whether security is required on the target registry secure.connection=true # The location of the truststore if security is required trustStore.fileName=TrustFile.jks # The password for the trust store trustStore.password=WebAS # The JSSE Provider class name jsse.provider=com.ibm.jsse.IBMJSSEProvider ############################################## # Trace and message logging configuration # ############################################## # detail level of message output (all functions) verbose=true # detail level of trace output. # 1: severe # 2: normal # 3: detail traceLevel=3 # path to message log file (relative or absolute) messageLogFileName=logs/messages.log # path to trace log file (relative or absolute) traceLogFileName=logs/trace.log ############################################## # Miscellaneous Options # ############################################## # indicates whether existing entities are overwritten (import/promote) # Note: tModels in referencedTModels section are never overwritten, # regardless of this setting. To overwrite tModels, they must # be present in the tModels section. overwrite=false # indicates whether referenced entities are imported (import/promote) importReferencedEntities=true # location of entity definition file, used for (export/import) UddiEntityDefinitionFile=definitions/entities01.xml # namespace prefix to use in definition file (export) namespacePrefix=promote
############################################## # Runtime environment # # (if invoking using java -jar...) # # "X Y" required around paths with spaces. # # Replace WAS_HOME with your WebSphere # # Application Server home path. # # db2java.jar is for DB2 - replace this with # # appropriate database driver file. # ############################################## classpath=.;WAS_HOME/UDDIReg/scripts/UDDIUtilityTools.jar; WAS_HOME/plugins/com.ibm.ws.runtime.jar;WAS_HOME/plugins/com.ibm.uddi.jar; WAS_HOME/lib/j2ee.jar;/usr/lpp/db2810/db2810/jcc/classes/db2java.jar ############################################## # SOAP entry points for source UDDI # # Replace localhost:9080 with the required # # values. # ############################################## fromInquiryURL=http://localhost:9080/uddisoap/inquiryapi fromGetURL=http://localhost:9080/uddisoap/get ############################################## # SOAP entry points for target UDDI # # Replace localhost:9080 with the required # # values. # ############################################## toInquiryURL=http://localhost:9080/uddisoap/inquiryapi toPublishURL=http://localhost:9080/uddisoap/publishapi ############################################## # UDDI Registry user information # # # # Note: This information must match the user # # information that was used to publish the # # entities on the target UDDI registry. # ############################################## userID=UNAUTHENTICATED password=NONE ############################################## # Configuration for destination UDDI DB # # Replace DB2LOCATION with the DB2 location # ############################################## dbDriver=com.ibm.db2.jcc.DB2Driver dbUrl=jdbc:db2:DB2LOCATION dbUser=db2admin dbPasswd=db2admin ############################################## # Security provider configuration # ############################################## # Indicates whether security is required on the target registry secure.connection=true # The location of the truststore if security is required trustStore.fileName=TrustFile.jks # The password for the trust store trustStore.password=WebAS # The JSSE Provider class name jsse.provider=com.ibm.jsse.IBMJSSEProvider ############################################## # Trace and message logging configuration # ############################################## # detail level of message output (all functions) verbose=true # detail level of trace output. # 1: severe # 2: normal # 3: detail traceLevel=3 # path to message log file (relative or absolute) messageLogFileName=logs/messages.log # path to trace log file (relative or absolute) traceLogFileName=logs/trace.log ############################################## # Miscellaneous Options # ############################################## # indicates whether existing entities are overwritten (import/promote) # Note: tModels in referencedTModels section are never overwritten, # regardless of this setting. To overwrite tModels, they must # be present in the tModels section. overwrite=false # indicates whether referenced entities are imported (import/promote) importReferencedEntities=true # location of entity definition file, used for (export/import) UddiEntityDefinitionFile=definitions/entities01.xml # namespace prefix to use in definition file (export) namespacePrefix=promote