Class JmsActivationSpec
- java.lang.Object
-
- org.jboss.resource.adapter.jms.inflow.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 Summary
Constructors Constructor Description JmsActivationSpec()
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description StringgetAcknowledgeMode()intgetAcknowledgeModeInt()StringgetClientId()StringgetClientID()StringgetConnectionFactory()StringgetConnectionFactoryLookup()Standard JMS 2.0 resource adapter property to lookup the connection factory.StringgetDestination()StringgetDestinationLookup()Standard JMS 2.0 resource adapter property to lookup the destination.StringgetDestinationType()intgetForceClearAttempts()longgetForceClearOnShutdownInterval()StringgetJndiParameters()intgetMaxMessages()intgetMaxMessagesInt()intgetMaxSession()intgetMaxSessionInt()StringgetMessageSelector()intgetMinSession()intgetMinSessionInt()StringgetPassword()Deprecated.use getPasswordCharschar[]getPasswordChars()intgetReconnectAttempts()longgetReconnectInterval()longgetReconnectIntervalLong()javax.resource.spi.ResourceAdaptergetResourceAdapter()StringgetSubscriptionDurability()StringgetSubscriptionName()intgetTransactionTimeout()StringgetUser()booleanisDurable()booleanisForceClearOnShutdown()voidsetAcknowledgeMode(String acknowledgeMode)voidsetClientId(String clientId)voidsetClientID(String clientId)voidsetConnectionFactory(String connectionFactory)voidsetConnectionFactoryLookup(String connectionFactoryLookup)Standard JMS 2.0 resource adapter property to lookup the connection factory.voidsetDestination(String destination)voidsetDestinationLookup(String destinationLookup)Standard JMS 2.0 resource adapter property to lookup the destination.voidsetDestinationType(String destinationType)voidsetForceClearAttempts(int forceClearAttempts)voidsetForceClearOnShutdown(boolean forceClear)voidsetForceClearOnShutdownInterval(long forceClearOnShutdownInterval)voidsetJndiParameters(String jndiParameters)voidsetMaxMessages(int maxMessages)voidsetMaxSession(int maxSession)voidsetMessageSelector(String messageSelector)voidsetMinSession(int minSession)voidsetPassword(String pass)voidsetReconnectAttempts(int reconnectAttempts)voidsetReconnectInterval(long reconnectInterval)voidsetResourceAdapter(javax.resource.spi.ResourceAdapter ra)voidsetSubscriptionDurability(String subscriptionDurability)voidsetSubscriptionName(String subscriptionName)voidsetTransactionTimeout(int transactionTimeout)voidsetUser(String user)StringtoString()voidvalidate()
-
-
-
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:
getResourceAdapterin interfacejavax.resource.spi.ResourceAdapterAssociation
-
setResourceAdapter
public void setResourceAdapter(javax.resource.spi.ResourceAdapter ra) throws javax.resource.ResourceException- Specified by:
setResourceAdapterin interfacejavax.resource.spi.ResourceAdapterAssociation- Throws:
javax.resource.ResourceException
-
validate
public void validate() throws javax.resource.spi.InvalidPropertyException- Specified by:
validatein interfacejavax.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.
-
-