my-Channels
/**
*
* ----------------------------------------------------------------------------------
*
* my-Channels License Version 1.1
* Copyright © my-Channels. All rights reserved
*
* In the event that you should download or otherwise use this software
* ( the "Software" ) you hereby acknowledge and agree that:
*
* 1. The Software is the property of my-Channels: Title, Copyright and all
* other proprietary rights, interest and benefit in and to the Software is and
* shall be owned by my-Channels;
*
* 2. You will not make copies of the Software whatsoever other than, if you should
* so wish, a single copy for archival purposes only;
*
* 3. You will not modify, reverse assemble, decompile, reverse engineer or otherwise
* translate the Software;
*
* 4. You will not redistribute, copy, forward electronically or circulate the Software
* to any person for any purpose whatsoever without the prior written consent of
* my-Channels;
*
* 5. You will not charge for, market or provide any managed service or product that
* is based upon or includes the Software or any variant of it; and
*
* 6. You will not use the Software for any purpose apart from your own personal,
* noncommercial and lawful use;
*
* You hereby agree that the software is used by you on an "as is" basis, without
* warranty of any kind. my-Channels hereby expressly disclaim all warranties
* and conditions, either expressed or implied, including but not limited to any
* implied warranties or conditions or merchantability and fitness for a particular
* purpose.
*
* You agree that you are solely responsible for determining the appropriateness of
* using the Software and assume all risks associated with it including but not
* limited to the risks of program errors, damage to or loss of of data, programs or
* equipment and unavailability or interruption of operations.
*
* my-Channels will not be liable for any direct damages or for any, special,
* incidental or indirect damages or for any economic consequential damages ( including
* lost profits or savings ), or any damage howsoever arising.
*
*
* ------------------------------------------------------------------------
*
*/
package com.pcbsys.Nirvana.nSpace;
import com.pcbsys.foundation.utils.fEnvironment;
import com.pcbsys.Nirvana.client.*;
import com.pcbsys.Nirvana.client.nSessionAttributes;
import Java.util.*;
import javax.naming.*;
/**
* <*Enter Class Description*>
*/
public class JMSAdmin {
static public String sClassVersion = "$Name: $ - $Revision: 1.1 $";
//
//---------------------------------------------------------------------------
// JMSAdmin Class Interface
//---------------------------------------------------------------------------
//
private Context ictx = null;
private nSession mysession = null;
private String rname = "nsp://127.0.0.1:9000";
// static public String sLicenseInfo = "This code is protected by copyright, any reverse engineering of this code is prohibited. Please refer to the license agreement";
private static void usage2() {
System.out.println("Java -DRNAME [-DPRINCIPAL] [-DPASSWORD] -DCONTEXT_FACTORY -DPROVIDER_URL JMSAdmin bind|unbind|list queueFactory|topicFactory|connectionFactory|queue|topic name/alias");
System.exit(1);
}
/**
* Prints the usage message for this class
*/
private static void usage() {
System.out.println("Usage ...\n");
System.out.println("jmsadmin