org.jboss.resource.adapter.jms.inflow
Class JmsActivationSpec

java.lang.Object
  extended byorg.jboss.resource.adapter.jms.inflow.JmsActivationSpec
All Implemented Interfaces:
ActivationSpec (src) , ResourceAdapterAssociation (src)

public class JmsActivationSpec
extends java.lang.Object
implements ActivationSpec (src)

A generic jms ActivationSpec.


Constructor Summary
JmsActivationSpec()
           
 
Method Summary
 java.lang.String getAcknowledgeMode()
           
 int getAcknowledgeModeInt()
           
 java.lang.String getClientId()
           
 java.lang.String getDestination()
           
 java.lang.String getDestinationType()
           
 java.lang.String getDLQClientID()
           
 java.lang.String getDLQHandler()
           
 java.lang.String getDLQJNDIName()
           
 int getDLQMaxResent()
           
 java.lang.String getDLQPassword()
           
 java.lang.String getDLQUser()
           
 long getKeepAlive()
           
 long getKeepAliveLong()
           
 int getMaxMessages()
           
 int getMaxMessagesInt()
           
 int getMaxSession()
           
 int getMaxSessionInt()
           
 java.lang.String getMessageSelector()
           
 int getMinSession()
           
 int getMinSessionInt()
           
 java.lang.String getPassword()
           
 java.lang.String getProviderAdapterJNDI()
           
 long getReconnectInterval()
           
 long getReconnectIntervalLong()
           
 ResourceAdapter (src) getResourceAdapter()
          Retrieve the resource adapter
 boolean getSessionTransacted()
           
 java.lang.String getSubscriptionDurability()
           
 java.lang.String getSubscriptionName()
           
 boolean getUseDLQ()
           
 java.lang.String getUser()
           
 boolean isDurable()
           
 boolean isSessionTransacted()
           
 boolean isTopic()
           
 boolean isUseDLQ()
          Whether we should use a DLQ
 void setAcknowledgeMode(java.lang.String acknowledgeMode)
           
 void setClientId(java.lang.String clientId)
           
 void setDestination(java.lang.String destination)
           
 void setDestinationType(java.lang.String destinationType)
           
 void setDLQClientID(java.lang.String clientID)
           
 void setDLQHandler(java.lang.String handler)
           
 void setDLQJNDIName(java.lang.String name)
           
 void setDLQMaxResent(int maxResent)
           
 void setDLQPassword(java.lang.String password)
           
 void setDLQUser(java.lang.String user)
           
 void setKeepAlive(long keepAlive)
           
 void setMaxMessages(int maxMessages)
           
 void setMaxSession(int maxSession)
           
 void setMessageSelector(java.lang.String messageSelector)
           
 void setMinSession(int minSession)
           
 void setPassword(java.lang.String pass)
           
 void setProviderAdapterJNDI(java.lang.String providerAdapterJNDI)
           
 void setReconnectInterval(long reconnectInterval)
           
 void setResourceAdapter(ResourceAdapter (src)  ra)
          Set the resource adapter
 void setSessionTransacted(boolean sessionTransacted)
           
 void setSubscriptionDurability(java.lang.String subscriptionDurability)
           
 void setSubscriptionName(java.lang.String subscriptionName)
           
 void setUseDLQ(boolean useDLQ)
           
 void setUser(java.lang.String user)
           
 java.lang.String toString()
           
 void validate()
          Optional method that can be used to check configuration by a deployment tool.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

JmsActivationSpec

public JmsActivationSpec()
Method Detail

getAcknowledgeMode

public java.lang.String getAcknowledgeMode()
Returns:
the acknowledgeMode.

setAcknowledgeMode

public void setAcknowledgeMode(java.lang.String acknowledgeMode)
Parameters:
acknowledgeMode - The acknowledgeMode to set.

getAcknowledgeModeInt

public int getAcknowledgeModeInt()
Returns:
the acknowledgement mode

getClientId

public java.lang.String getClientId()
Returns:
the clientId.

setClientId

public void setClientId(java.lang.String clientId)
Parameters:
clientId - The clientId to set.

getDestination

public java.lang.String getDestination()
Returns:
the destination.

setDestination

public void setDestination(java.lang.String destination)
Parameters:
destination - The destination to set.

getDestinationType

public java.lang.String getDestinationType()
Returns:
the destinationType.

setDestinationType

public void setDestinationType(java.lang.String destinationType)
Parameters:
destinationType - The destinationType to set.

isTopic

public boolean isTopic()
Returns:
whether this is for a topic.

getMessageSelector

public java.lang.String getMessageSelector()
Returns:
the messageSelector.

setMessageSelector

public void setMessageSelector(java.lang.String messageSelector)
Parameters:
messageSelector - The messageSelector to set.

getSubscriptionDurability

public java.lang.String getSubscriptionDurability()
Returns:
the subscriptionDurability.

setSubscriptionDurability

public void setSubscriptionDurability(java.lang.String subscriptionDurability)
Parameters:
subscriptionDurability - The subscriptionDurability to set.

isDurable

public boolean isDurable()
Returns:
wether the subscription is durable.

getSubscriptionName

public java.lang.String getSubscriptionName()
Returns:
the subscriptionName.

setSubscriptionName

public void setSubscriptionName(java.lang.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

getProviderAdapterJNDI

public java.lang.String getProviderAdapterJNDI()
Returns:
the providerAdapterJNDI.

setProviderAdapterJNDI

public void setProviderAdapterJNDI(java.lang.String providerAdapterJNDI)
Parameters:
providerAdapterJNDI - The providerAdapterJNDI to set.

getUser

public java.lang.String getUser()
Returns:
the user.

setUser

public void setUser(java.lang.String user)
Parameters:
user - The user to set.

getPassword

public java.lang.String getPassword()
Returns:
the password.

setPassword

public void setPassword(java.lang.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

getKeepAlive

public long getKeepAlive()
Returns:
the keepAlive.

setKeepAlive

public void setKeepAlive(long keepAlive)
Parameters:
keepAlive - The keepAlive to set.

getKeepAliveLong

public long getKeepAliveLong()
Returns:
the keep alive time of the session

getSessionTransacted

public boolean getSessionTransacted()
Returns:
the sessionTransacted.

setSessionTransacted

public void setSessionTransacted(boolean sessionTransacted)
Parameters:
sessionTransacted - The sessionTransacted to set.

isSessionTransacted

public boolean isSessionTransacted()
Returns:
whether the session is transaction

getDLQHandler

public java.lang.String getDLQHandler()
Returns:
Returns the dLQHandler.

setDLQHandler

public void setDLQHandler(java.lang.String handler)
Parameters:
handler - The dLQHandler to set.

getDLQJNDIName

public java.lang.String getDLQJNDIName()
Returns:
Returns the dLQJNDIName.

setDLQJNDIName

public void setDLQJNDIName(java.lang.String name)
Parameters:
name - The dLQJNDIName to set.

getUseDLQ

public boolean getUseDLQ()
Returns:
Returns the useDLQ.

setUseDLQ

public void setUseDLQ(boolean useDLQ)
Parameters:
useDLQ - The useDLQ to set.

isUseDLQ

public boolean isUseDLQ()
Whether we should use a DLQ

Returns:
true when using a DLQ

getDLQClientID

public java.lang.String getDLQClientID()
Returns:
Returns the dLQClientID.

setDLQClientID

public void setDLQClientID(java.lang.String clientID)
Parameters:
clientID - The dLQClientID to set.

getDLQPassword

public java.lang.String getDLQPassword()
Returns:
Returns the dLQPassword.

setDLQPassword

public void setDLQPassword(java.lang.String password)
Parameters:
password - The dLQPassword to set.

getDLQUser

public java.lang.String getDLQUser()
Returns:
Returns the dLQUser.

setDLQUser

public void setDLQUser(java.lang.String user)
Parameters:
user - The dLQUser to set.

getDLQMaxResent

public int getDLQMaxResent()
Returns:
Returns the maxResent.

setDLQMaxResent

public void setDLQMaxResent(int maxResent)
Parameters:
maxResent - The maxResent to set.

getResourceAdapter

public ResourceAdapter (src)  getResourceAdapter()
Description copied from interface: ResourceAdapterAssociation (src)
Retrieve the resource adapter

Specified by:
getResourceAdapter in interface ResourceAdapterAssociation (src)
Returns:
the resource adapter

setResourceAdapter

public void setResourceAdapter(ResourceAdapter (src)  ra)
                        throws ResourceException (src) 
Description copied from interface: ResourceAdapterAssociation (src)
Set the resource adapter

Specified by:
setResourceAdapter in interface ResourceAdapterAssociation (src)
Throws:
ResourceException (src) - for any error

validate

public void validate()
              throws InvalidPropertyException (src) 
Description copied from interface: ActivationSpec (src)
Optional method that can be used to check configuration by a deployment tool.

Specified by:
validate in interface ActivationSpec (src)
Throws:
InvalidPropertyException (src) - for invalid configuration

toString

public java.lang.String toString()