You can use the UDDI registry administrative interface to manage the information about a UDDI node and its activation state.
String nodeID = uddiNode.getNode(); System.out.println("node ID: " + nodeId);
nodeState value | English text associated with state |
---|---|
node.state.uninitialized | Not initialized |
node.state.initialized | Initialized |
node.state.initPending | Initialization pending |
node.state.initInProgress | Initialization in progress |
node.state.initMigrationPending | Migration pending |
node.state.initMigration | Migration in progress |
node.state.initValueSetCreationPending | Value set creation pending |
node.state.initValueSetCreation | Value set creation in progress |
node.state.activated | Activated |
node.state.deactivated | Deactivated |
node.state.unknown | Unknown |
After a UDDI application is installed as a default configuration,, the UDDI node is in activated state, that is, ready to receive and process UDDI API requests. The node ID, root key generator, and some other properties are generated and you cannot change them.
After a UDDI application is installed manually, for example, because you want to specify the UDDI node ID and root key generator values, when the UDDI application starts, the UDDI node is in initPending state. In this state, you can update all writable values until you invoke the initNode operation. The initNode operation loads base tModel entities and value set data, and writes all the configuration data to the database for the UDDI node. During initialization, the UDDI node is in initInProgress state. When initialization completes, the state changes momentarily to initialized and settles at activated. At this point, the state can be switched only between the activated and deactivated states, using the deactivateNode and activateNode MBean operations.
String nodeStateKey = uddiNode.getNodeState();
String messages = "com.ibm.uddi.v3.management.messages"; ResourceBundle bundle = ResourceBundle.getBundle(messages,Locale.ENGLISH); String nodeStateText = bundle.getString(nodeStateKey); System.out.println("node state: " + nodeStateText);
String nodeDescription = uddiNode.getNodeDescription(); System.out.println("node description: " + nodeDescription);
String nodeApplicationId = uddiNode.getApplicationId(); System.out.println("node application location: " + nodeApplicationId);
uddiNode.activateNode();
uddiNode.deactivateNode();
uddiNode.initNode();