Skip to main content

Product: OpenFusion Naming Service

Version: ALL

 

Description:

Can I export the xml of the Name Service to back it up?

 

Resolution:

The OpenFusion Naming Service can both export and import XML files containing a representation of a Naming hierarchy.

This is performed on the command line.

To export a naming hierarchy to an XML file, use this command:

run com.prismt.cos.CosNaming.xml.ExportXML [options]

To import a naming hierarchy from an XML file, use this command:

run com.prismt.cos.CosNaming.xml.ImportXML [options]

The options are as follows:

-n namingHierarchyFile: name of XML file to export naming hierarchy into or from

resolveName: the resolve name of the Naming Service

-c targetNamingContext: the name of the naming context that is to be the root of the exported or imported naming hierarchy

-f namingIORFile: the name of a file containing the IOR of the Naming Service

-i namingIOR: the IOR of the Naming Service You may need to use the run command with the -x option to avoid picking up the JDK CosNaming classes from the CLASSPATH

You can also import and export Naming hierarchies using the OpenFusion Administration Manager.

This can be done as follows:

Exporting xml

1. Start the OpenFusion Adminstation Manager and bring up the Naming Service Manager by right clicking on the NameSingleton.

2. Select the naming context that is to be exported. Every node under the selected naming context is exported. To export the entire hierarchy select the root node.

3. Right click on the selected naming context and select export xml from the pop up menu. Alternatively, click the 'Save Naming XML' tool bar button.

4. Select a file location and enter a file name in the 'Save Naming XML' dialog box. This operation will fail if any part of the tree contains invalid contexts.

Importing XML

1. Select the naming context the imported branch will be added under

2. Right click on the selected naming context and select 'Import XML' from the pop-up menu. Alternatively click the 'Load Naming XML' tool bar button.

3. Use the Load Naming XML dialog box to select a previously exported XML file to import.


#OpenFusionNamingService
#OpenFusion
#KnowledgeDocs