You can use the UDDI registry administrative interface to manage the UDDI node runtime behavior by setting the configuration properties.
In the samples for WebSphere® Application Server, the ManagePropertiesSample class in the UDDI registry samples demonstrates these operations.
List properties = uddiNode.getProperties();
if (properties != null) { for (Iterator iter = properties.iterator(); iter.hasNext();) { ConfigurationProperty property = (ConfigurationProperty) iter.next(); System.out.println(property); } }
ConfigurationProperty id: operatorNodeIDValue nameKey: property.name.operatorNodeIDValue descriptionKey: property.desc.operatorNodeIDValue type: java.lang.String value: uddi:capnscarlet:capnscarlet:server1:default unitsKey: readOnly: true required: true usingMessageKeys: false validValues: none
You can use the nameKey and descriptionKey values to look up the translated name and description for a given locale, using the messages.properties resource in the sample package.
ConfigurationProperty property = uddiNode.getProperty(PropertyConstants.DATABASE_MAX_RESULT_COUNT);
int maxResults = property.getIntegerValue();
ConfigurationProperty defaultLanguage = new ConfigurationProperty(); defaultLanguage.setId(PropertyConstants.DEFAULT_LANGUAGE);
defaultLanguage.setStringValue("ja");
uddiNode.updateProperty(defaultLanguage);
List updatedProperties = new ArrayList(); updatedProperties.add(updatedProperty1); updatedProperties.add(updatedProperty2);
uddiNode.updateProperties(updatedProperties);