Java Client: Import a realm's configuration information
This example demonstrates how to import a realm's cluster, joins, security, channels / queues, scheduling, interfaces / plugins, configuration information and JNDI assets from an XML file that was previously created by exporting a realm (see
Java Client: Export a realm to XML).
Important: Importing a configuration that contains clustered transient channels and queues will fail because transient channels and queues are not supported in a cluster. To resolve this situation, you can change the value of the type attribute of each channel or queue in the XML file for import from TRANSIENT_TYPE to MIXED_TYPE.
Usage
nimportrealmxml file_name
<Optional Arguments>
-all -realmacl -realmcfg -channels -jndi -channelfilter=<filter>
-channelacls -queues -queuefilter=<filter> -queueacls -interfaces
-datagroups -datagroupfilter=<filter>
Note: -? provides help on environment variables
Application Source Code