Class JmsActivationSpec

  • All Implemented Interfaces:
    javax.resource.spi.ActivationSpec, javax.resource.spi.ResourceAdapterAssociation

    public class JmsActivationSpec
    extends Object
    implements javax.resource.spi.ActivationSpec
    A generic jms ActivationSpec.
    Author:
    Adrian Brock, Jesper Pedersen, Justin Bertram
    • Constructor Detail

      • JmsActivationSpec

        public JmsActivationSpec()
    • Method Detail

      • setForceClearOnShutdown

        public void setForceClearOnShutdown​(boolean forceClear)
      • isForceClearOnShutdown

        public boolean isForceClearOnShutdown()
      • getForceClearOnShutdownInterval

        public long getForceClearOnShutdownInterval()
      • setForceClearOnShutdownInterval

        public void setForceClearOnShutdownInterval​(long forceClearOnShutdownInterval)
      • getForceClearAttempts

        public int getForceClearAttempts()
      • setForceClearAttempts

        public void setForceClearAttempts​(int forceClearAttempts)
      • getAcknowledgeMode

        public String getAcknowledgeMode()
        Returns:
        the acknowledgeMode.
      • setAcknowledgeMode

        public void setAcknowledgeMode​(String acknowledgeMode)
        Parameters:
        acknowledgeMode - The acknowledgeMode to set.
      • getAcknowledgeModeInt

        public int getAcknowledgeModeInt()
        Returns:
        the acknowledgement mode
      • getClientId

        public String getClientId()
        Returns:
        the clientId.
      • setClientId

        public void setClientId​(String clientId)
        Parameters:
        clientId - The clientId to set.
      • getClientID

        public String getClientID()
        Returns:
        the clientId.
      • setClientID

        public void setClientID​(String clientId)
        Parameters:
        clientId - The clientId to set.
      • getDestination

        public String getDestination()
        Returns:
        the destination.
      • setDestination

        public void setDestination​(String destination)
        Parameters:
        destination - The destination to set.
      • getDestinationLookup

        public String getDestinationLookup()
        Standard JMS 2.0 resource adapter property to lookup the destination.
        Returns:
        the destination.
      • setDestinationLookup

        public void setDestinationLookup​(String destinationLookup)
        Standard JMS 2.0 resource adapter property to lookup the destination.
        Parameters:
        destinationLookup - The destination to set.
      • getDestinationType

        public String getDestinationType()
        Returns:
        the destinationType.
      • setDestinationType

        public void setDestinationType​(String destinationType)
        Parameters:
        destinationType - The destinationType to set.
      • getMessageSelector

        public String getMessageSelector()
        Returns:
        the messageSelector.
      • setMessageSelector

        public void setMessageSelector​(String messageSelector)
        Parameters:
        messageSelector - The messageSelector to set.
      • getSubscriptionDurability

        public String getSubscriptionDurability()
        Returns:
        the subscriptionDurability.
      • setSubscriptionDurability

        public void setSubscriptionDurability​(String subscriptionDurability)
        Parameters:
        subscriptionDurability - The subscriptionDurability to set.
      • isDurable

        public boolean isDurable()
        Returns:
        whether the subscription is durable.
      • getSubscriptionName

        public String getSubscriptionName()
        Returns:
        the subscriptionName.
      • setSubscriptionName

        public void setSubscriptionName​(String subscriptionName)
        Parameters:
        subscriptionName - The subscriptionName to set.
      • getReconnectInterval

        public long getReconnectInterval()
        Returns:
        the reconnectInterval.
      • setReconnectInterval

        public void setReconnectInterval​(long reconnectInterval)
        Parameters:
        reconnectInterval - The reconnectInterval to set.
      • getReconnectIntervalLong

        public long getReconnectIntervalLong()
        Returns:
        the reconnect interval
      • getUser

        public String getUser()
        Returns:
        the user.
      • setUser

        public void setUser​(String user)
        Parameters:
        user - The user to set.
      • getPassword

        @Deprecated
        public String getPassword()
        Deprecated.
        use getPasswordChars
        Returns:
        the password.
      • getPasswordChars

        public char[] getPasswordChars()
        Returns:
        the password.
      • setPassword

        public void setPassword​(String pass)
        Parameters:
        pass - The password to set.
      • getMaxMessages

        public int getMaxMessages()
        Returns:
        the maxMessages.
      • setMaxMessages

        public void setMaxMessages​(int maxMessages)
        Parameters:
        maxMessages - The maxMessages to set.
      • getMaxMessagesInt

        public int getMaxMessagesInt()
        Returns:
        the maximum number of messages
      • getMinSession

        public int getMinSession()
        Returns:
        the minSession.
      • setMinSession

        public void setMinSession​(int minSession)
        Parameters:
        minSession - The minSession to set.
      • getMinSessionInt

        public int getMinSessionInt()
        Returns:
        the minimum number of sessions
      • getMaxSession

        public int getMaxSession()
        Returns:
        the maxSession.
      • setMaxSession

        public void setMaxSession​(int maxSession)
        Parameters:
        maxSession - The maxSession to set.
      • getMaxSessionInt

        public int getMaxSessionInt()
        Returns:
        the maximum number of sessions
      • getResourceAdapter

        public javax.resource.spi.ResourceAdapter getResourceAdapter()
        Specified by:
        getResourceAdapter in interface javax.resource.spi.ResourceAdapterAssociation
      • setResourceAdapter

        public void setResourceAdapter​(javax.resource.spi.ResourceAdapter ra)
                                throws javax.resource.ResourceException
        Specified by:
        setResourceAdapter in interface javax.resource.spi.ResourceAdapterAssociation
        Throws:
        javax.resource.ResourceException
      • validate

        public void validate()
                      throws javax.resource.spi.InvalidPropertyException
        Specified by:
        validate in interface javax.resource.spi.ActivationSpec
        Throws:
        javax.resource.spi.InvalidPropertyException
      • getReconnectAttempts

        public int getReconnectAttempts()
      • setReconnectAttempts

        public void setReconnectAttempts​(int reconnectAttempts)
      • getTransactionTimeout

        public int getTransactionTimeout()
      • setTransactionTimeout

        public void setTransactionTimeout​(int transactionTimeout)
      • setJndiParameters

        public void setJndiParameters​(String jndiParameters)
      • getJndiParameters

        public String getJndiParameters()
      • setConnectionFactory

        public void setConnectionFactory​(String connectionFactory)
      • getConnectionFactory

        public String getConnectionFactory()
      • setConnectionFactoryLookup

        public void setConnectionFactoryLookup​(String connectionFactoryLookup)
        Standard JMS 2.0 resource adapter property to lookup the connection factory.
        Parameters:
        connectionFactoryLookup - The connection factory to set.
      • getConnectionFactoryLookup

        public String getConnectionFactoryLookup()
        Standard JMS 2.0 resource adapter property to lookup the connection factory.
        Returns:
        the connection factory.