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).
Usage
nimportrealmxml file_name
<Optional Arguments>
-all -realmacl -realmcfg -channels -durables -jndi -channelfilter=<filter>
-channelacls -queues -queuefilter=<filter> -queueacls -interfaces
-datagroups -datagroupfilter=<filter> -autoconvert
Note: -? provides help on environment variables
Usage Notes
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 use the -autoconvert option to automatically convert all clustered transient channels and queues to mixed channels and queues. However, be aware that converting clustered transient channels and queues to mixed might cause additional disk and memory consumption for events published to these channels and queues.
Application Source Code