AdminConnectionConfiguration.java :  » JMS » Open-Message-Queue » com » sun » messaging » Java Open Source

Java Open Source » JMS » Open Message Queue 
Open Message Queue » com » sun » messaging » AdminConnectionConfiguration.java
/*
 * The contents of this file are subject to the terms
 * of the Common Development and Distribution License
 * (the "License").  You may not use this file except
 * in compliance with the License.
 *
 * You can obtain a copy of the license at
 * https://glassfish.dev.java.net/public/CDDLv1.0.html.
 * See the License for the specific language governing
 * permissions and limitations under the License.
 *
 * When distributing Covered Code, include this CDDL
 * HEADER in each file and include the License file at
 * https://glassfish.dev.java.net/public/CDDLv1.0.html.  
 *
 * If applicable add the following below this CDDL HEADER,
 * with the fields enclosed by brackets "[]" replaced with 
 * your own identifying information: Portions Copyright 
 * [year] [name of copyright owner]
 */

/*
 * @(#)AdminConnectionConfiguration.java  1.3 05/02/06
 *
 * Copyright 2006 Sun Microsystems, Inc.  All Rights Reserved.
 */ 

package com.sun.messaging;

/**
 * The <code>AdminConnectionConfiguration</code> class contains property names 
 * and special values for configuring the <CODE>AdminConnectionFactory</CODE> object.
 * <P>
 * Other property names and information related to security is TBD.
 *
 * @version     1.3 06/05/02
 * @author      Isa Hashim
 *
 * @see         com.sun.messaging.AdminConnectionFactory com.sun.messaging.AdminConnectionFactory
 */
public class AdminConnectionConfiguration {

    /* No public constructor needed */
    private AdminConnectionConfiguration(){}

    /**
     * This property holds the address that will be used by management clients to
     * connect to the MQ Message Service.
     * <p>
     * <b>Message Server Address Syntax</b>
     * <p>The syntax for specifying a message server address is as follows:<BR>
     *  </p>  
     * <p><code><i>scheme</i>://<i>address_syntax</i></code><br>
     *   </p> 
     *  
     * <P>
     * This syntax is similar to the one used by JMS clients to configure JMS
     * ConnectionFactory objects. However, the address syntax includes an MQ broker
     * JMX connector name (instead of a connection service name).
     *
     * <p><code><i>scheme</i></code> and <code><i>address_syntax</i></code> are described in the folowing 
     *   table.</p>
     * <TABLE columns="4" border="1">
     *   <TR>
     *     <TH>Scheme</TH>
     *     <TH>JMX Connector Name</TH>
     *     <TH>Description</TH>
     *     <TH>Syntax</TH>
     *   </TR>
     * 
     *   <TR>
     *     <TD valign="top"><code>mq</code></TD>
     *     
     *       <TD valign="top">
     *       <code>jmxrmi<br>
     *         and <br>
     *         jmxsslrmi</code>
     *       </TD>
     *     
     *   <TD valign="top">The MQ Port Mapper at the specified host and port 
     *      will handle the connection request, and determine the JMXServiceURL
     *      for the connector that is specified. Once this is known, MQ makes the 
     *      connection.</TD>
     *     
     *     <TD valign="top"><code>[<i>hostName</i>][:<i>port</i>]/<i>connectorName</i></code> <br>
     *       Defaults: <br>
     *       <code><i>hostName</i> = localhost <br>
     *       <i>port</i> = 7676</code><br>
     *       A connector name must be specified.
     *     </TD>
     *   </TR>
     * 
     * </TABLE>
     * <p>&nbsp;</p>
     * <p>The following table shows how the message server address syntax applies in 
     *   some typical cases.</p>
     * <TABLE columns="4" border="1">
     *   <TR>
     *     <TH>Connector Name</TH>
     *     <TH>Broker Host</TH>
     *     <TH>Port</TH>
     *     <TH>Example Address</TH>
     *   </TR>
     * 
     *   <TR>
     *     
     *     <TD valign="top">jmxrmi</TD>
     *     
     *     <TD valign="top">Unspecified</TD>
     *       
     *     <TD valign="top">Unspecified</TD>
     *     
     *     <TD valign="top"><code>mq:///jmxrmi<br>
     *       (mq://localhost:7676/jmxrmi)</code></TD>  
     *   </TR>
     *   
     *   <TR>
     *     
     *     <TD valign="top">jmxrmi</TD>
     *     
     *     <TD valign="top">Specified Host</TD>
     *       
     *     <TD valign="top">Unspecified</TD>
     *     
     *     <TD valign="top"><code>mq://myBkrHost/jmxrmi<br>
     *       (mq://myBkrHost:7676/jmxrmi)</code></TD>  
     *   </TR>
     *   
     *   <TR>
     *     
     *     <TD valign="top">jmxrmi</TD>
     *     
     *     <TD valign="top">Unspecified</TD>
     *       
     *     <TD valign="top">Specified Portmapper Port</TD>
     *     
     *     <TD valign="top"><code>mq://:1012/jmxrmi<br>
     *       (mq://localHost:1012/jmxrmi)</code></TD>  
     *   </TR>
     *   
     *   <TR>
     *     
     *     <TD valign="top"><code>jmxsslrmi</code></TD>
     *     
     *     <TD valign="top">Local Host</TD>
     *       
     *     <TD valign="top">Default Portmapper Port</TD>
     *     
     *     <TD valign="top"><code>mq://localHost:7676/jmxsslrmi</code></TD>  
     *   </TR>
     *   
     *   <TR>
     *    <TD valign="top"><code>jmxsslrmi</code></TD>
     *     
     *     <TD valign="top">Specified Host</TD>
     *       
     *     <TD valign="top">Default Portmapper Port</TD>
     *     
     *     <TD valign="top"><code>mq://myBkrHost:7676/jmxsslrmi</code></TD>  
     *   </TR>
     *   <TR>
     *    <TD valign="top"><code>jmxsslrmi</code></TD>
     *     
     *     <TD valign="top">Specified Host</TD>
     *       
     *     <TD valign="top">Specified Portmapper Port</TD>
     *     
     *     <TD valign="top"><code>mq://myBkrHost:1012/jmxsslrmi</code></TD>  
     *   </TR>
     *   
     * </TABLE>
     * <P>&nbsp;</P>
     * <p>
     * The default value of this property is <code><b>mq://localhost:7676/jmxrmi</b></code>
     * <p>
     */
    public static final String imqAddress = "imqAddress";

    /**
     * This property holds the default administrator username that will be used
     * to authenticate with the MQ Administration Service.
     * <p>
     * The default value of this property is <code><b>admin</b></code>
     */
    public static final String imqDefaultAdminUsername = "imqDefaultAdminUsername";

    /**
     * This property holds the default administrator password that will be used
     * to authenticate with the MQ Administration Service.
     * <p>
     * The default value of this property is <code><b>admin</b></code>
     */
    public static final String imqDefaultAdminPassword = "imqDefaultAdminPassword";

}
java2s.com  | Contact Us | Privacy Policy
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.