org.jboss.messaging.ra.inflow
Class JBMActivationSpec

java.lang.Object
  extended by org.jboss.messaging.ra.ConnectionFactoryProperties
      extended by org.jboss.messaging.ra.inflow.JBMActivationSpec
All Implemented Interfaces:
javax.resource.spi.ActivationSpec, javax.resource.spi.ResourceAdapterAssociation

public class JBMActivationSpec
extends ConnectionFactoryProperties
implements javax.resource.spi.ActivationSpec

The activation spec These properties are set on the MDB ActivactionProperties

Version:
$Revision: $
Author:
Adrian Brock, Jesper Pedersen, Andy Taylor, Clebert Suconic

Field Summary
 java.lang.String strConnectionParameters
           
 
Constructor Summary
JBMActivationSpec()
          Constructor
 
Method Summary
 java.lang.String getAcknowledgeMode()
          Get the acknowledge mode
 int getAcknowledgeModeInt()
           
 java.lang.String getConnectionParameters()
           
 java.lang.String getDestination()
          Get the destination
 java.lang.String getDestinationType()
          Get the destination type
 java.lang.Integer getMaxMessages()
          Get the numer of max messages
 int getMaxMessagesInt()
          Get the number of max messages
 java.lang.Integer getMaxSession()
          Get the number of max session
 int getMaxSessionInt()
          Get the number of max session
 java.lang.String getMessageSelector()
          Get the message selector
 java.lang.Integer getMinSession()
          Get the number of min session
 int getMinSessionInt()
          Get the number of min session
 java.util.Map<java.lang.String,java.lang.Object> getParsedConnectionParameters()
           
 java.lang.String getPassword()
          Get the password
 javax.resource.spi.ResourceAdapter getResourceAdapter()
          Get the resource adapter
 java.lang.String getSubscriptionDurability()
          Get the subscription durability
 java.lang.String getSubscriptionName()
          Get the subscription name
 java.lang.Integer getTransactionTimeout()
          Get the transaction timeout
 java.lang.String getUser()
          Get the user
 boolean isSubscriptionDurable()
          Get the status of subscription durability
 boolean isUseJNDI()
           
 java.lang.Boolean isUseLocalTx()
           
 void setAcknowledgeMode(java.lang.String value)
          Set the acknowledge mode
 void setConnectionParameters(java.lang.String configuration)
           
 void setDestination(java.lang.String value)
          Set the destination
 void setDestinationType(java.lang.String value)
          Set the destination type
 void setDLQJNDIName(java.lang.String name)
           
 void setDLQMaxResent(int maxResent)
           
 void setMaxMessages(java.lang.Integer value)
          Set the numer of max messages
 void setMaxSession(java.lang.Integer value)
          Set the number of max session
 void setMessageSelector(java.lang.String value)
          Set the message selector
 void setMinSession(java.lang.Integer value)
          Set the number of min session
 void setPassword(java.lang.String value)
          Set the password
 void setProviderAdapterJNDI(java.lang.String jndi)
           
 void setResourceAdapter(javax.resource.spi.ResourceAdapter ra)
          Set the resource adapter
 void setSubscriptionDurability(java.lang.String value)
          Set the subscription durability
 void setSubscriptionName(java.lang.String value)
          Set the subscription name
 void setTransactionTimeout(java.lang.Integer value)
          Set the transaction timeout
 void setUseDLQ(boolean b)
           
 void setUseJNDI(boolean value)
           
 void setUseLocalTx(java.lang.Boolean localTx)
           
 void setUser(java.lang.String value)
          Set the user
 java.lang.String toString()
          Get a string representation
 void validate()
          Validate
 
Methods inherited from class org.jboss.messaging.ra.ConnectionFactoryProperties
getBackupConnectorClassName, getCallTimeout, getClientFailureCheckPeriod, getClientID, getConnectionLoadBalancingPolicyClassName, getConnectionTTL, getConnectorClassName, getConsumerMaxRate, getConsumerWindowSize, getDiscoveryAddress, getDiscoveryInitialWaitTimeout, getDiscoveryPort, getDiscoveryRefreshTimeout, getDupsOKBatchSize, getMaxConnections, getMinLargeMessageSize, getParsedBackupConnectionParameters, getProducerMaxRate, getProducerWindowSize, getReconnectAttempts, getRetryInterval, getRetryIntervalMultiplier, getScheduledThreadPoolMaxSize, getThreadPoolMaxSize, getTransactionBatchSize, isAutoGroup, isBlockOnAcknowledge, isBlockOnNonPersistentSend, isBlockOnPersistentSend, isFailoverOnServerShutdown, isHasBeenUpdated, isPreAcknowledge, isUseGlobalPools, setAutoGroup, setBackupConnectorClassName, setBlockOnAcknowledge, setBlockOnNonPersistentSend, setBlockOnPersistentSend, setCallTimeout, setClientFailureCheckPeriod, setClientID, setConnectionLoadBalancingPolicyClassName, setConnectionTTL, setConnectorClassName, setConsumerMaxRate, setConsumerWindowSize, setDiscoveryAddress, setDiscoveryInitialWaitTimeout, setDiscoveryPort, setDiscoveryRefreshTimeout, setDupsOKBatchSize, setFailoverOnServerShutdown, setMaxConnections, setMinLargeMessageSize, setParsedBackupConnectionParameters, setParsedConnectionParameters, setPreAcknowledge, setProducerMaxRate, setProducerWindowSize, setReconnectAttempts, setRetryInterval, setRetryIntervalMultiplier, setScheduledThreadPoolMaxSize, setThreadPoolMaxSize, setTransactionBatchSize, setUseGlobalPools
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

strConnectionParameters

public java.lang.String strConnectionParameters
Constructor Detail

JBMActivationSpec

public JBMActivationSpec()
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 boolean isUseJNDI()
Returns:
the useJNDI

setUseJNDI

public void setUseJNDI(boolean value)
Parameters:
value - the useJNDI to set

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

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

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

setAcknowledgeMode

public void setAcknowledgeMode(java.lang.String value)
Set the acknowledge mode

Parameters:
value - The value

getAcknowledgeModeInt

public int 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 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

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

setPassword

public void setPassword(java.lang.String value)
Set the password

Parameters:
value - The value

getMaxMessages

public java.lang.Integer getMaxMessages()
Get the numer of max messages

Returns:
The value

setMaxMessages

public void setMaxMessages(java.lang.Integer value)
Set the numer of max messages

Parameters:
value - The value

getMaxMessagesInt

public int getMaxMessagesInt()
Get the number of max messages

Returns:
The value

getMinSession

public java.lang.Integer getMinSession()
Get the number of min session

Returns:
The value

setMinSession

public void setMinSession(java.lang.Integer value)
Set the number of min session

Parameters:
value - The value

getMinSessionInt

public int getMinSessionInt()
Get the number of min session

Returns:
The value

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

getMaxSessionInt

public int getMaxSessionInt()
Get the number of max session

Returns:
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)

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

getConnectionParameters

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

getParsedConnectionParameters

public java.util.Map<java.lang.String,java.lang.Object> getParsedConnectionParameters()
Overrides:
getParsedConnectionParameters in class ConnectionFactoryProperties

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(boolean b)

setDLQJNDIName

public void setDLQJNDIName(java.lang.String name)

setDLQMaxResent

public void setDLQMaxResent(int maxResent)

setProviderAdapterJNDI

public void setProviderAdapterJNDI(java.lang.String jndi)


Copyright © 2006 JBoss Inc. All Rights Reserved.