Universal Messaging 10.7 | Developer Guide | Enterprise APIs | Enterprise Developer's Guide for Java | Code Examples | Administration API | Java Client: Copy a channel and its attributes
 
Java Client: Copy a channel and its attributes
This example demonstrates how to copy a given channel and its attributes onto the same realm or a different realm, thereby creating a clone of the original channel. Note that events on the original channel are not copied to the new channel.
Usage

nadmincopychan <channel> [-r toRealm] [-n toChannelName] [-a channel ttl]
[-c channel capacity] [-t channel type]

<Required Arguments>

<channel> - Channel name parameter for the channel to copy

[Optional Arguments]

<-r toRealm> - The name of the linked remote realm to copy the channel to
<-n toChannelName> - The name you wish to give the copied channel
<-a channel ttl> - The ttl you wish to give the copied channel
<-c channel capacity> - The capacity you wish to give the copied channel
<-t channel type> - The channel you wish the copied channel to be any of
(P | R | M | S | T)


Note: -? provides help on environment variables
Application Source Code
Click here for a code example