Class ActiveMQActivationSpec

  • All Implemented Interfaces:
    java.io.Serializable, javax.resource.spi.ActivationSpec, javax.resource.spi.ResourceAdapterAssociation, org.apache.activemq.artemis.jms.client.ConnectionFactoryOptions

    public class ActiveMQActivationSpec
    extends ConnectionFactoryProperties
    implements javax.resource.spi.ActivationSpec, java.io.Serializable
    The activation spec These properties are set on the MDB ActivationProperties
    See Also:
    Serialized Form
    • Field Detail

      • strConnectorClassName

        public java.lang.String strConnectorClassName
      • strConnectionParameters

        public java.lang.String strConnectionParameters
      • allowLocalTransactions

        protected java.lang.Boolean allowLocalTransactions
    • Constructor Detail

      • ActiveMQActivationSpec

        public ActiveMQActivationSpec()
        Constructor
    • Method Detail

      • getResourceAdapter

        public javax.resource.spi.ResourceAdapter getResourceAdapter()
        Get the resource adapter
        Specified by:
        getResourceAdapter in interface javax.resource.spi.ResourceAdapterAssociation
        Returns:
        The resource adapter
      • isUseJNDI

        public java.lang.Boolean isUseJNDI()
        Returns:
        the useJNDI
      • setUseJNDI

        public void setUseJNDI​(java.lang.Boolean value)
        Parameters:
        value - the useJNDI to set
      • getJndiParams

        public java.lang.String getJndiParams()
        Returns:
        return the jndi params to use
      • setJndiParams

        public void setJndiParams​(java.lang.String jndiParams)
      • getParsedJndiParams

        public java.util.Hashtable<?,​?> getParsedJndiParams()
      • setResourceAdapter

        public void setResourceAdapter​(javax.resource.spi.ResourceAdapter ra)
                                throws javax.resource.ResourceException
        Set the resource adapter
        Specified by:
        setResourceAdapter in interface javax.resource.spi.ResourceAdapterAssociation
        Parameters:
        ra - The resource adapter
        Throws:
        javax.resource.ResourceException - Thrown if incorrect resource adapter
      • getConnectionFactoryLookup

        public java.lang.String getConnectionFactoryLookup()
        Get the connection factory lookup
        Returns:
        The value
      • setConnectionFactoryLookup

        public void setConnectionFactoryLookup​(java.lang.String value)
        Set the connection factory lookup
        Parameters:
        value - The value
      • getDestination

        public java.lang.String getDestination()
        Get the destination
        Returns:
        The value
      • setDestination

        public void setDestination​(java.lang.String value)
        Set the destination
        Parameters:
        value - The value
      • getDestinationLookup

        public java.lang.String getDestinationLookup()
        Get the destination lookup
        Returns:
        The value
      • setDestinationLookup

        public void setDestinationLookup​(java.lang.String value)
        Set the destination
        Parameters:
        value - The value
      • getDestinationType

        public java.lang.String getDestinationType()
        Get the destination type
        Returns:
        The value
      • setDestinationType

        public void setDestinationType​(java.lang.String value)
        Set the destination type
        Parameters:
        value - The value
      • getMessageSelector

        public java.lang.String getMessageSelector()
        Get the message selector
        Returns:
        The value
      • setMessageSelector

        public void setMessageSelector​(java.lang.String value)
        Set the message selector
        Parameters:
        value - The value
      • getAcknowledgeMode

        public java.lang.String getAcknowledgeMode()
        Get the acknowledge mode
        Returns:
        The value
      • setQueuePrefix

        public void setQueuePrefix​(java.lang.String prefix)
      • getQueuePrefix

        public java.lang.String getQueuePrefix()
      • setTopicPrefix

        public void setTopicPrefix​(java.lang.String prefix)
      • getTopicPrefix

        public java.lang.String getTopicPrefix()
      • setAcknowledgeMode

        public void setAcknowledgeMode​(java.lang.String value)
        Set the acknowledge mode
        Parameters:
        value - The value
      • getAcknowledgeModeInt

        public java.lang.Integer getAcknowledgeModeInt()
        Returns:
        the acknowledgement mode
      • getSubscriptionDurability

        public java.lang.String getSubscriptionDurability()
        Get the subscription durability
        Returns:
        The value
      • setSubscriptionDurability

        public void setSubscriptionDurability​(java.lang.String value)
        Set the subscription durability
        Parameters:
        value - The value
      • isSubscriptionDurable

        public java.lang.Boolean isSubscriptionDurable()
        Get the status of subscription durability
        Returns:
        The value
      • getSubscriptionName

        public java.lang.String getSubscriptionName()
        Get the subscription name
        Returns:
        The value
      • setSubscriptionName

        public void setSubscriptionName​(java.lang.String value)
        Set the subscription name
        Parameters:
        value - The value
      • isShareSubscriptions

        public java.lang.Boolean isShareSubscriptions()
        Returns:
        the shareDurableSubscriptions
      • setShareSubscriptions

        public void setShareSubscriptions​(java.lang.Boolean shareSubscriptions)
        Parameters:
        shareSubscriptions - the shareDurableSubscriptions to set
      • getUser

        public java.lang.String getUser()
        Get the user
        Returns:
        The value
      • setUser

        public void setUser​(java.lang.String value)
        Set the user
        Parameters:
        value - The value
      • getPassword

        public java.lang.String getPassword()
        Get the password
        Returns:
        The value
      • getOwnPassword

        public java.lang.String getOwnPassword()
      • setPassword

        public void setPassword​(java.lang.String value)
                         throws java.lang.Exception
        Set the password
        Parameters:
        value - The value
        Throws:
        java.lang.Exception
      • getMaxSession

        public java.lang.Integer getMaxSession()
        Get the number of max session
        Returns:
        The value
      • setMaxSession

        public void setMaxSession​(java.lang.Integer value)
        Set the number of max session
        Parameters:
        value - The value
      • isSingleConnection

        public java.lang.Boolean isSingleConnection()
        Get the number of max session
        Returns:
        The value
      • setSingleConnection

        public void setSingleConnection​(java.lang.Boolean value)
        Set the number of max session
        Parameters:
        value - The value
      • getTransactionTimeout

        public java.lang.Integer getTransactionTimeout()
        Get the transaction timeout
        Returns:
        The value
      • setTransactionTimeout

        public void setTransactionTimeout​(java.lang.Integer value)
        Set the transaction timeout
        Parameters:
        value - The value
      • isUseLocalTx

        public java.lang.Boolean isUseLocalTx()
      • setUseLocalTx

        public void setUseLocalTx​(java.lang.Boolean localTx)
      • isRebalanceConnections

        public java.lang.Boolean isRebalanceConnections()
      • setRebalanceConnections

        public void setRebalanceConnections​(java.lang.Boolean rebalanceConnections)
      • getSetupAttempts

        public java.lang.Integer getSetupAttempts()
      • setSetupAttempts

        public void setSetupAttempts​(java.lang.Integer setupAttempts)
      • getSetupInterval

        public java.lang.Long getSetupInterval()
      • setSetupInterval

        public void setSetupInterval​(java.lang.Long setupInterval)
      • setClientId

        public void setClientId​(java.lang.String clientId)
      • validate

        public void validate()
                      throws javax.resource.spi.InvalidPropertyException
        Validate
        Specified by:
        validate in interface javax.resource.spi.ActivationSpec
        Throws:
        javax.resource.spi.InvalidPropertyException - Thrown if a validation exception occurs
      • getConnectorClassName

        public java.lang.String getConnectorClassName()
      • setConnectorClassName

        public void setConnectorClassName​(java.lang.String connectorClassName)
      • getConnectionParameters

        public java.lang.String getConnectionParameters()
        Returns:
        the connectionParameters
      • setConnectionParameters

        public void setConnectionParameters​(java.lang.String configuration)
      • toString

        public java.lang.String toString()
        Get a string representation
        Overrides:
        toString in class java.lang.Object
        Returns:
        The value
      • setUseDLQ

        public void setUseDLQ​(java.lang.Boolean b)
      • setDLQJNDIName

        public void setDLQJNDIName​(java.lang.String name)
      • setDLQHandler

        public void setDLQHandler​(java.lang.String handler)
      • setDLQMaxResent

        public void setDLQMaxResent​(java.lang.Integer maxResent)
      • setProviderAdapterJNDI

        public void setProviderAdapterJNDI​(java.lang.String jndi)
      • setKeepAlive

        public void setKeepAlive​(java.lang.Boolean keepAlive)
        Parameters:
        keepAlive - the keepAlive to set
      • setKeepAliveMillis

        public void setKeepAliveMillis​(java.lang.Long keepAliveMillis)
        Parameters:
        keepAliveMillis - the keepAliveMillis to set
      • setReconnectInterval

        public void setReconnectInterval​(java.lang.Long interval)
      • setMinSession

        public void setMinSession​(java.lang.Integer value)
      • setMaxMessages

        public void setMaxMessages​(java.lang.Integer value)
      • isAllowLocalTransactions

        public java.lang.Boolean isAllowLocalTransactions()
      • setAllowLocalTransactions

        public void setAllowLocalTransactions​(java.lang.Boolean allowLocalTransactions)