
mq.src.share.java.com.sun.messaging.AdminConnectionConfiguration Maven / Gradle / Ivy
/*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER.
*
* Copyright (c) 2000-2010 Oracle and/or its affiliates. All rights reserved.
*
* The contents of this file are subject to the terms of either the GNU
* General Public License Version 2 only ("GPL") or the Common Development
* and Distribution License("CDDL") (collectively, 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/CDDL+GPL_1_1.html
* or packager/legal/LICENSE.txt. See the License for the specific
* language governing permissions and limitations under the License.
*
* When distributing the software, include this License Header Notice in each
* file and include the License file at packager/legal/LICENSE.txt.
*
* GPL Classpath Exception:
* Oracle designates this particular file as subject to the "Classpath"
* exception as provided by Oracle in the GPL Version 2 section of the License
* file that accompanied this code.
*
* Modifications:
* If applicable, add the following below the License Header, with the fields
* enclosed by brackets [] replaced by your own identifying information:
* "Portions Copyright [year] [name of copyright owner]"
*
* Contributor(s):
* If you wish your version of this file to be governed by only the CDDL or
* only the GPL Version 2, indicate your decision by adding "[Contributor]
* elects to include this software in this distribution under the [CDDL or GPL
* Version 2] license." If you don't indicate a single choice of license, a
* recipient has the option to distribute your version of this file under
* either the CDDL, the GPL Version 2 or to extend the choice of license to
* its licensees as provided above. However, if you add GPL Version 2 code
* and therefore, elected the GPL Version 2 license, then the option applies
* only if the new code is made subject to such option by the copyright
* holder.
*/
/*
* @(#)AdminConnectionConfiguration.java 1.4 06/28/07
*/
package com.sun.messaging;
/**
* The AdminConnectionConfiguration
class contains property names
* and special values for configuring the AdminConnectionFactory
object.
*
* Other property names and information related to security is TBD.
*
* @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.
*
* Message Server Address Syntax
*
The syntax for specifying a message server address is as follows:
*
* scheme://address_syntax
*
*
*
* 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).
*
*
scheme
and address_syntax
are described in the folowing
* table.
*
*
* Scheme
* JMX Connector Name
* Description
* Syntax
*
*
*
* mq
*
*
* jmxrmi
* and
* jmxsslrmi
*
*
* 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.
*
* [hostName][:port]/connectorName
* Defaults:
* hostName = localhost
* port = 7676
* A connector name must be specified.
*
*
*
*
*
* The following table shows how the message server address syntax applies in
* some typical cases.
*
*
* Connector Name
* Broker Host
* Port
* Example Address
*
*
*
*
* jmxrmi
*
* Unspecified
*
* Unspecified
*
* mq:///jmxrmi
* (mq://localhost:7676/jmxrmi)
*
*
*
*
* jmxrmi
*
* Specified Host
*
* Unspecified
*
* mq://myBkrHost/jmxrmi
* (mq://myBkrHost:7676/jmxrmi)
*
*
*
*
* jmxrmi
*
* Unspecified
*
* Specified Portmapper Port
*
* mq://:1012/jmxrmi
* (mq://localHost:1012/jmxrmi)
*
*
*
*
* jmxsslrmi
*
* Local Host
*
* Default Portmapper Port
*
* mq://localHost:7676/jmxsslrmi
*
*
*
* jmxsslrmi
*
* Specified Host
*
* Default Portmapper Port
*
* mq://myBkrHost:7676/jmxsslrmi
*
*
* jmxsslrmi
*
* Specified Host
*
* Specified Portmapper Port
*
* mq://myBkrHost:1012/jmxsslrmi
*
*
*
*
*
* The default value of this property is mq://localhost:7676/jmxrmi
*
*/
public static final String imqAddress = "imqAddress";
/**
* This property holds the default administrator username that will be used
* to authenticate with the MQ Administration Service.
*
* The default value of this property is admin
*/
public static final String imqDefaultAdminUsername = "imqDefaultAdminUsername";
/**
* This property holds the default administrator password that will be used
* to authenticate with the MQ Administration Service.
*
* The default value of this property is admin
*/
public static final String imqDefaultAdminPassword = "imqDefaultAdminPassword";
}