Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
  /*
   * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER.
   *
   * Copyright (c) 1997-2012 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.
  */
 
 package com.sun.enterprise.connectors.jms.config;
 
 
 import java.util.List;

The jms-service element specifies information about the bundled/built-in JMS service that is managed by Application Server
 
 
 /* @XmlType(name = "", propOrder = {
     "jmsHost",
     "property"
 }) */
 
 @CustomConfiguration(baseConfigurationFileName = "jms-module-conf.xml")
 public interface JmsService extends ConfigExtensionPropertyBagContainer {

    
Gets the value of the initTimeoutInSeconds property. specifies the time server instance will wait at start up, for its corresponding JMS service instance to respond. If there is no response within the specifies timeout period, application server startup is aborted. Default value of 60 seconds

Returns:
possible object is
 
     @Attribute (defaultValue="60")
     @Min(value=1)
     String getInitTimeoutInSeconds();

    
Sets the value of the initTimeoutInSeconds property.

Parameters:
value allowed object is
 
     void setInitTimeoutInSeconds(String valuethrows PropertyVetoException;

    
Gets the value of the type property. Type of JMS service

Returns:
possible object is
    @Attribute
    @NotNull
    @Pattern(regexp="(LOCAL|EMBEDDED|REMOTE)")
    String getType();

    
Sets the value of the type property.

Parameters:
value allowed object is
    void setType(String valuethrows PropertyVetoException;

    
Gets the value of the startArgs property. specifies the arguments that will be supplied to start up corresponding JMS service instance.

Returns:
possible object is
    @Attribute
    String getStartArgs();

    
Sets the value of the startArgs property.

Parameters:
value allowed object is
    void setStartArgs(String valuethrows PropertyVetoException;

    
Gets the value of the defaultJmsHost property. Reference to a jms-host that to be started when type of jms-service is LOCAL.

Returns:
possible object is
    @Attribute
    String getDefaultJmsHost();

    
Sets the value of the defaultJmsHost property.

Parameters:
value allowed object is
    void setDefaultJmsHost(String valuethrows PropertyVetoException;
     @Attribute
    String getMasterBroker();

    
Sets the value of the MasterBroker property.

Parameters:
value allowed object is
    void setMasterBroker(String valuethrows PropertyVetoException;

    
Gets the value of the reconnectIntervalInSeconds property. Interval between reconnect attempts, in seconds. An integer.

Returns:
possible object is
    @Attribute (defaultValue="5")
    @Min(value=1)
Sets the value of the reconnectIntervalInSeconds property.

Parameters:
value allowed object is
    void setReconnectIntervalInSeconds(String valuethrows PropertyVetoException;

    
Gets the value of the reconnectAttempts property. Total number of attempts to reconnect. An integer.

Returns:
possible object is
    @Attribute (defaultValue="3")
    String getReconnectAttempts();

    
Sets the value of the reconnectAttempts property.

Parameters:
value allowed object is
    void setReconnectAttempts(String valuethrows PropertyVetoException;

    
Gets the value of the reconnectEnabled property. Causes reconnect feature to be enabled (true) or disabled (false).

Returns:
possible object is
    @Attribute (defaultValue="true",dataType=Boolean.class)
    String getReconnectEnabled();

    
Sets the value of the reconnectEnabled property.

Parameters:
value allowed object is
    void setReconnectEnabled(String valuethrows PropertyVetoException;

    
Gets the value of the addresslistBehavior property. Determines broker selection from imqAddressList. random causes selection to be performed randomly priority causes selection to be performed sequentially

Returns:
possible object is
    @Attribute (defaultValue="random")
    @Pattern(regexp="(random|priority)")
    String getAddresslistBehavior();

    
Sets the value of the addresslistBehavior property.

Parameters:
value allowed object is
    void setAddresslistBehavior(String valuethrows PropertyVetoException;

    
Gets the value of the addresslistIterations property. Number of times reconnect logic should iterate imqAddressList. This property will not be used if the addresslist-behavior is "random".

Returns:
possible object is
    @Attribute (defaultValue="3")
    @Min(value=-1)
    @Max(value=.)
Sets the value of the addresslistIterations property.

Parameters:
value allowed object is
    void setAddresslistIterations(String valuethrows PropertyVetoException;

    
Gets the value of the mqScheme property. Scheme for establishing connection with broker. For e.g. scheme can be specified as "http" for connecting to MQ broker over http. Default: "mq"

Returns:
possible object is
    @Attribute
    @Pattern(regexp="(mq||http)")
    String getMqScheme();

    
Sets the value of the mqScheme property.

Parameters:
value allowed object is
    void setMqScheme(String valuethrows PropertyVetoException;

    
Gets the value of the mqService property. Type of broker service. If a broker supports ssl, then the type of service can be "ssljms". If nothing is specified, MQ will assume that service is "jms".

Returns:
possible object is
    @Attribute
    @Pattern(regexp="(ssljms||jms)")
    String getMqService();

    
Sets the value of the mqService property.

Parameters:
value allowed object is
    void setMqService(String valuethrows PropertyVetoException;

    
Gets the value of the jmsHost property.

This accessor method returns a reference to the live list, not a snapshot. Therefore any modification you make to the returned list will be present inside the JAXB object. This is why there is not a set method for the jmsHost property.

For example, to add a new item, do as follows:

    getJmsHost().add(newItem);
 

Objects of the following type(s) are allowed in the list

    @Element
    List<JmsHostgetJmsHost();

     
Properties.
    props={
        @PropertyDesc(name="instance-name", defaultValue="imqbroker",
            description="The full Sun GlassFish Message Queue broker instance name"),
        @PropertyDesc(name="instance-name-suffix", defaultValue="xxxxxxxxxxxxxxxxxx",
            description="A suffix to add to the full Message Queue broker instance name. The suffix is separated " +
                "from the instance name by an underscore character (_). For example, if the instance name is 'imqbroker', " +
                "appending the suffix 'xyz' changes the instance name to 'imqbroker_xyz'"),
        @PropertyDesc(name="append-version", defaultValue="",
            description="If true, appends the major and minor version numbers, preceded by underscore characters (_), " +
                "to the full Message Queue broker instance name. For example, if the instance name is 'imqbroker', " +
                "appending the version numbers changes the instance name to imqbroker_8_0"),
        @PropertyDesc(name="user-name", defaultValue="xxxxxxxxxxxxxxxxxx",
            description="Specifies the user name for creating the JMS connection. Needed only if the default " +
                "username/password of guest/guest is not available in the broker"),
        @PropertyDesc(name="password", defaultValue="xxxxxxxxxxxxxxxxxx",
            description="Specifies the password for creating the JMS connection. Needed only if the default " +
                "username/password of guest/guest is not available in the broker")
    }
    )
    @Element
New to GrepCode? Check out our FAQ X