Package org.apache.activemq.artemis.ra
Class ActiveMQResourceAdapter
- java.lang.Object
-
- org.apache.activemq.artemis.ra.ActiveMQResourceAdapter
-
- All Implemented Interfaces:
Serializable,javax.resource.spi.ResourceAdapter
public class ActiveMQResourceAdapter extends Object implements javax.resource.spi.ResourceAdapter, Serializable
The resource adapter for ActiveMQ- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static StringPRODUCT_NAMEThe Name of the product that this resource adapter represents.
-
Constructor Summary
Constructors Constructor Description ActiveMQResourceAdapter()Constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description voidcloseConnectionFactory(ConnectionFactoryProperties properties)protected BroadcastEndpointFactorycreateBroadcastEndpointFactory(ConnectionFactoryProperties overrideProperties)ActiveMQConnectionFactorycreateRecoveryActiveMQConnectionFactory(ConnectionFactoryProperties overrideProperties)ClientSessioncreateSession(ClientSessionFactory parameterFactory, int ackMode, String user, String pass, Boolean preAck, Integer dupsOkBatchSize, Integer transactionBatchSize, boolean deliveryTransacted, boolean useLocalTx, Integer txTimeout)voidendpointActivation(javax.resource.spi.endpoint.MessageEndpointFactory endpointFactory, javax.resource.spi.ActivationSpec spec)Endpoint activationvoidendpointDeactivation(javax.resource.spi.endpoint.MessageEndpointFactory endpointFactory, javax.resource.spi.ActivationSpec spec)Endpoint deactivationbooleanequals(Object obj)Indicates whether some other object is "equal to" this one.Map<javax.resource.spi.ActivationSpec,ActiveMQActivation>getActivations()BooleangetAutoGroup()Get auto groupBooleangetBlockOnAcknowledge()Get block on acknowledgeBooleangetBlockOnDurableSend()Get block on durable sendBooleangetBlockOnNonDurableSend()Get block on non durable sendLonggetCallFailoverTimeout()Get call failover timeoutLonggetCallTimeout()Get call timeoutLonggetClientFailureCheckPeriod()Get client failure check periodStringgetClientID()Get the client IDStringgetCodec()IntegergetConfirmationWindowSize()Get confirmation window sizeActiveMQConnectionFactorygetConnectionFactory(ConnectionFactoryProperties overrideProperties)StringgetConnectionLoadBalancingPolicyClassName()StringgetConnectionParameters()LonggetConnectionTTL()Get connection TTLStringgetConnectorClassName()IntegergetConsumerMaxRate()Get consumer max rateIntegergetConsumerWindowSize()Get consumer window sizeActiveMQConnectionFactorygetDefaultActiveMQConnectionFactory()StringgetDeserializationBlackList()StringgetDeserializationWhiteList()StringgetDiscoveryAddress()Get the discovery group nameLonggetDiscoveryInitialWaitTimeout()Get discovery initial wait timeoutStringgetDiscoveryLocalBindAddress()get the discovery local bind addressIntegergetDiscoveryPort()Get the discovery group portLonggetDiscoveryRefreshTimeout()Get discovery refresh timeoutIntegergetDupsOKBatchSize()Get dups ok batch sizeStringgetEntries()StringgetGroupID()Get the group IDBooleangetHA()IntegergetInitialConnectAttempts()Get number of initial connect attemptsIntegergetInitialMessagePacketSize()Get initial message packet sizeStringgetJgroupsChannelLocatorClass()StringgetJgroupsChannelName()StringgetJgroupsChannelRefName()StringgetJgroupsFile()StringgetJndiName()StringgetJndiParams()LonggetMaxRetryInterval()Get maximum time for retry intervalIntegergetMinLargeMessageSize()Get min large message sizeHashtable<?,?>getParsedJndiParams()StringgetPassword()Get the passwordStringgetPasswordCodec()BooleangetPreAcknowledge()Get pre acknowledgeIntegergetProducerMaxRate()Get producer max rateIntegergetProducerWindowSize()Get producer window sizeActiveMQRAPropertiesgetProperties()Get the resource adapter propertiesStringgetProtocolManagerFactoryStr()IntegergetReconnectAttempts()Get number of reconnect attemptsRecoveryManagergetRecoveryManager()LonggetRetryInterval()Get retry intervalDoublegetRetryIntervalMultiplier()Get retry interval multiplierIntegergetScheduledThreadPoolMaxSize()intgetSetupAttempts()longgetSetupInterval()IntegergetThreadPoolMaxSize()javax.transaction.TransactionManagergetTM()IntegergetTransactionBatchSize()Get transaction batch sizeBooleangetUseGlobalPools()BooleangetUseLocalTx()Get the use XA flagStringgetUserName()Get the user namejavax.resource.spi.work.WorkManagergetWorkManager()Get the work managerXAResource[]getXAResources(javax.resource.spi.ActivationSpec[] specs)Get XA resourcesinthashCode()Return the hash code for the objectBooleanisCacheDestinations()Get isCacheDestinationsBooleanisCacheLargeMessagesClient()Get cacheLargeMessagesClientBooleanisCompressLargeMessage()Get compressLargeMessageBooleanisEnable1xPrefixes()Get isCacheDestinationsBooleanisFailoverOnInitialConnection()Deprecated.BooleanisIgnoreJTA()BooleanisUseAutoRecovery()booleanisUseJNDI()BooleanisUseMaskedPassword()BooleanisUseTopologyForLoadBalancing()ActiveMQConnectionFactorynewConnectionFactory(ConnectionFactoryProperties overrideProperties)Map<String,Object>overrideConnectionParameters(Map<String,Object> connectionParams, Map<String,Object> overrideConnectionParams)voidsetAutoGroup(Boolean autoGroup)Set auto groupvoidsetBlockOnAcknowledge(Boolean blockOnAcknowledge)Set block on acknowledgevoidsetBlockOnDurableSend(Boolean blockOnDurableSend)Set block on durable sendvoidsetBlockOnNonDurableSend(Boolean blockOnNonDurableSend)Set block on non durable sendvoidsetCacheDestinations(Boolean cacheDestinations)Set cacheDestinationsvoidsetCacheLargeMessagesClient(Boolean cacheLargeMessagesClient)Set cacheLargeMessagesClientvoidsetCallFailoverTimeout(Long callFailoverTimeout)Set call failover timeoutvoidsetCallTimeout(Long callTimeout)Set call timeoutvoidsetClientFailureCheckPeriod(Long clientFailureCheckPeriod)Set client failure check periodvoidsetClientID(String clientID)Set the client IDvoidsetCompressLargeMessage(Boolean compressLargeMessage)Set compressLargeMessagevoidsetConfirmationWindowSize(Integer confirmationWindowSize)Set confirmation window sizevoidsetConnectionLoadBalancingPolicyClassName(String connectionLoadBalancingPolicyClassName)voidsetConnectionParameters(String config)voidsetConnectionTTL(Long connectionTTL)Set connection TTLvoidsetConnectorClassName(String connectorClassName)voidsetConsumerMaxRate(Integer consumerMaxRate)Set consumer max ratevoidsetConsumerWindowSize(Integer consumerWindowSize)Set consumer window sizevoidsetDeserializationBlackList(String deserializationBlackList)voidsetDeserializationWhiteList(String deserializationWhiteList)voidsetDiscoveryAddress(String dgn)Set the discovery group namevoidsetDiscoveryInitialWaitTimeout(Long discoveryInitialWaitTimeout)Set discovery initial wait timeoutvoidsetDiscoveryLocalBindAddress(String discoveryLocalBindAddress)set the discovery local bind addressvoidsetDiscoveryPort(Integer dgp)Set the discovery group portvoidsetDiscoveryRefreshTimeout(Long discoveryRefreshTimeout)Set discovery refresh timeoutvoidsetDupsOKBatchSize(Integer dupsOKBatchSize)Set dups ok batch sizevoidsetEnable1xPrefixes(Boolean enable1xPrefixes)Set enable1xPrefixesvoidsetEntries(String entries)voidsetFailoverOnInitialConnection(Boolean failoverOnInitialConnection)Deprecated.voidsetGroupID(String groupID)Set the group IDvoidsetHA(Boolean ha)voidsetIgnoreJTA(Boolean ignoreJTA)voidsetInitialConnectAttempts(Integer initialConnectAttempts)Set number of initial connect attemptsvoidsetInitialMessagePacketSize(Integer initialMessagePacketSize)Set initial message packet sizevoidsetJgroupsChannelLocatorClass(String jgroupsChannelLocatorClass)voidsetJgroupsChannelName(String jgroupsChannelName)voidsetJgroupsChannelRefName(String jgroupsChannelRefName)voidsetJgroupsFile(String jgroupsFile)voidsetJndiParams(String jndiParams)voidsetManagedConnectionFactory(ActiveMQRAManagedConnectionFactory activeMQRAManagedConnectionFactory)voidsetMaxRetryInterval(Long maxRetryInterval)Set maximum time for retry intervalvoidsetMinLargeMessageSize(Integer minLargeMessageSize)Set min large message sizevoidsetPassword(String password)Set the passwordvoidsetPasswordCodec(String passwordCodec)voidsetPreAcknowledge(Boolean preAcknowledge)Set pre acknowledgevoidsetProducerMaxRate(Integer producerMaxRate)Set producer max ratevoidsetProducerWindowSize(Integer producerWindowSize)Set producer window sizevoidsetProtocolManagerFactoryStr(String protocolManagerFactoryStr)voidsetReconnectAttempts(Integer reconnectAttempts)Set number of reconnect attemptsvoidsetRetryInterval(Long retryInterval)Set retry intervalvoidsetRetryIntervalMultiplier(Double retryIntervalMultiplier)Set retry interval multipliervoidsetScheduledThreadPoolMaxSize(Integer scheduledThreadPoolMaxSize)voidsetSetupAttempts(Integer setupAttempts)voidsetSetupInterval(Long interval)voidsetThreadPoolMaxSize(Integer threadPoolMaxSize)voidsetTransactionBatchSize(Integer transactionBatchSize)Set transaction batch sizeprotected voidsetup()Setup the factoryvoidsetUseAutoRecovery(Boolean useAutoRecovery)voidsetUseGlobalPools(Boolean useGlobalPools)voidsetUseJNDI(Boolean value)voidsetUseLocalTx(Boolean localTx)Set the use XA flagvoidsetUseMaskedPassword(Boolean useMaskedPassword)voidsetUserName(String userName)Set the user namevoidsetUseTopologyForLoadBalancing(Boolean useTopologyForLoadBalancing)voidstart(javax.resource.spi.BootstrapContext ctx)Startvoidstop()Stop
-
-
-
Field Detail
-
PRODUCT_NAME
public static final String PRODUCT_NAME
The Name of the product that this resource adapter represents.- See Also:
- Constant Field Values
-
-
Method Detail
-
getTM
public javax.transaction.TransactionManager getTM()
-
endpointActivation
public void endpointActivation(javax.resource.spi.endpoint.MessageEndpointFactory endpointFactory, javax.resource.spi.ActivationSpec spec) throws javax.resource.ResourceExceptionEndpoint activation- Specified by:
endpointActivationin interfacejavax.resource.spi.ResourceAdapter- Parameters:
endpointFactory- The endpoint factoryspec- The activation spec- Throws:
javax.resource.ResourceException- Thrown if an error occurs
-
endpointDeactivation
public void endpointDeactivation(javax.resource.spi.endpoint.MessageEndpointFactory endpointFactory, javax.resource.spi.ActivationSpec spec)Endpoint deactivation- Specified by:
endpointDeactivationin interfacejavax.resource.spi.ResourceAdapter- Parameters:
endpointFactory- The endpoint factoryspec- The activation spec
-
getXAResources
public XAResource[] getXAResources(javax.resource.spi.ActivationSpec[] specs) throws javax.resource.ResourceException
Get XA resources- Specified by:
getXAResourcesin interfacejavax.resource.spi.ResourceAdapter- Parameters:
specs- The activation specs- Returns:
- The XA resources
- Throws:
javax.resource.ResourceException- Thrown if an error occurs or unsupported
-
start
public void start(javax.resource.spi.BootstrapContext ctx) throws javax.resource.spi.ResourceAdapterInternalExceptionStart- Specified by:
startin interfacejavax.resource.spi.ResourceAdapter- Parameters:
ctx- The bootstrap context- Throws:
javax.resource.spi.ResourceAdapterInternalException- Thrown if an error occurs
-
stop
public void stop()
Stop- Specified by:
stopin interfacejavax.resource.spi.ResourceAdapter
-
setUseAutoRecovery
public void setUseAutoRecovery(Boolean useAutoRecovery)
-
isUseAutoRecovery
public Boolean isUseAutoRecovery()
-
isUseMaskedPassword
public Boolean isUseMaskedPassword()
-
setUseMaskedPassword
public void setUseMaskedPassword(Boolean useMaskedPassword)
-
setPasswordCodec
public void setPasswordCodec(String passwordCodec)
-
getPasswordCodec
public String getPasswordCodec()
-
setConnectorClassName
public void setConnectorClassName(String connectorClassName)
-
getConnectorClassName
public String getConnectorClassName()
-
getConnectionParameters
public String getConnectionParameters()
-
setConnectionParameters
public void setConnectionParameters(String config)
-
getHA
public Boolean getHA()
-
setHA
public void setHA(Boolean ha)
-
getEntries
public String getEntries()
-
getJndiName
public String getJndiName()
-
setEntries
public void setEntries(String entries)
-
getDiscoveryAddress
public String getDiscoveryAddress()
Get the discovery group name- Returns:
- The value
-
setJgroupsFile
public void setJgroupsFile(String jgroupsFile)
-
getJgroupsFile
public String getJgroupsFile()
-
getJgroupsChannelName
public String getJgroupsChannelName()
-
setJgroupsChannelName
public void setJgroupsChannelName(String jgroupsChannelName)
-
setDiscoveryAddress
public void setDiscoveryAddress(String dgn)
Set the discovery group name- Parameters:
dgn- The value
-
getDiscoveryPort
public Integer getDiscoveryPort()
Get the discovery group port- Returns:
- The value
-
setDiscoveryLocalBindAddress
public void setDiscoveryLocalBindAddress(String discoveryLocalBindAddress)
set the discovery local bind address- Parameters:
discoveryLocalBindAddress- the address value
-
getDiscoveryLocalBindAddress
public String getDiscoveryLocalBindAddress()
get the discovery local bind address- Returns:
- the address value
-
setDiscoveryPort
public void setDiscoveryPort(Integer dgp)
Set the discovery group port- Parameters:
dgp- The value
-
getDiscoveryRefreshTimeout
public Long getDiscoveryRefreshTimeout()
Get discovery refresh timeout- Returns:
- The value
-
setDiscoveryRefreshTimeout
public void setDiscoveryRefreshTimeout(Long discoveryRefreshTimeout)
Set discovery refresh timeout- Parameters:
discoveryRefreshTimeout- The value
-
getDiscoveryInitialWaitTimeout
public Long getDiscoveryInitialWaitTimeout()
Get discovery initial wait timeout- Returns:
- The value
-
setDiscoveryInitialWaitTimeout
public void setDiscoveryInitialWaitTimeout(Long discoveryInitialWaitTimeout)
Set discovery initial wait timeout- Parameters:
discoveryInitialWaitTimeout- The value
-
getClientFailureCheckPeriod
public Long getClientFailureCheckPeriod()
Get client failure check period- Returns:
- The value
-
setClientFailureCheckPeriod
public void setClientFailureCheckPeriod(Long clientFailureCheckPeriod)
Set client failure check period- Parameters:
clientFailureCheckPeriod- The value
-
getConnectionTTL
public Long getConnectionTTL()
Get connection TTL- Returns:
- The value
-
setConnectionTTL
public void setConnectionTTL(Long connectionTTL)
Set connection TTL- Parameters:
connectionTTL- The value
-
isCacheLargeMessagesClient
public Boolean isCacheLargeMessagesClient()
Get cacheLargeMessagesClient- Returns:
- The value
-
setCacheLargeMessagesClient
public void setCacheLargeMessagesClient(Boolean cacheLargeMessagesClient)
Set cacheLargeMessagesClient- Parameters:
cacheLargeMessagesClient- The value
-
isCompressLargeMessage
public Boolean isCompressLargeMessage()
Get compressLargeMessage- Returns:
- The value
-
setFailoverOnInitialConnection
@Deprecated public void setFailoverOnInitialConnection(Boolean failoverOnInitialConnection)
Deprecated.Set failoverOnInitialConnection- Parameters:
failoverOnInitialConnection- The value
-
isFailoverOnInitialConnection
@Deprecated public Boolean isFailoverOnInitialConnection()
Deprecated.Get isFailoverOnInitialConnection- Returns:
- The value
-
setCacheDestinations
public void setCacheDestinations(Boolean cacheDestinations)
Set cacheDestinations- Parameters:
cacheDestinations- The value
-
isCacheDestinations
public Boolean isCacheDestinations()
Get isCacheDestinations- Returns:
- The value
-
setEnable1xPrefixes
public void setEnable1xPrefixes(Boolean enable1xPrefixes)
Set enable1xPrefixes- Parameters:
enable1xPrefixes- The value
-
isEnable1xPrefixes
public Boolean isEnable1xPrefixes()
Get isCacheDestinations- Returns:
- The value
-
setCompressLargeMessage
public void setCompressLargeMessage(Boolean compressLargeMessage)
Set compressLargeMessage- Parameters:
compressLargeMessage- The value
-
getCallTimeout
public Long getCallTimeout()
Get call timeout- Returns:
- The value
-
setCallTimeout
public void setCallTimeout(Long callTimeout)
Set call timeout- Parameters:
callTimeout- The value
-
getCallFailoverTimeout
public Long getCallFailoverTimeout()
Get call failover timeout- Returns:
- The value
-
setCallFailoverTimeout
public void setCallFailoverTimeout(Long callFailoverTimeout)
Set call failover timeout- Parameters:
callFailoverTimeout- The value
-
getDupsOKBatchSize
public Integer getDupsOKBatchSize()
Get dups ok batch size- Returns:
- The value
-
setDupsOKBatchSize
public void setDupsOKBatchSize(Integer dupsOKBatchSize)
Set dups ok batch size- Parameters:
dupsOKBatchSize- The value
-
getTransactionBatchSize
public Integer getTransactionBatchSize()
Get transaction batch size- Returns:
- The value
-
setTransactionBatchSize
public void setTransactionBatchSize(Integer transactionBatchSize)
Set transaction batch size- Parameters:
transactionBatchSize- The value
-
getConsumerWindowSize
public Integer getConsumerWindowSize()
Get consumer window size- Returns:
- The value
-
setConsumerWindowSize
public void setConsumerWindowSize(Integer consumerWindowSize)
Set consumer window size- Parameters:
consumerWindowSize- The value
-
getConsumerMaxRate
public Integer getConsumerMaxRate()
Get consumer max rate- Returns:
- The value
-
setConsumerMaxRate
public void setConsumerMaxRate(Integer consumerMaxRate)
Set consumer max rate- Parameters:
consumerMaxRate- The value
-
getConfirmationWindowSize
public Integer getConfirmationWindowSize()
Get confirmation window size- Returns:
- The value
-
setConfirmationWindowSize
public void setConfirmationWindowSize(Integer confirmationWindowSize)
Set confirmation window size- Parameters:
confirmationWindowSize- The value
-
getProducerMaxRate
public Integer getProducerMaxRate()
Get producer max rate- Returns:
- The value
-
setProducerMaxRate
public void setProducerMaxRate(Integer producerMaxRate)
Set producer max rate- Parameters:
producerMaxRate- The value
-
setUseTopologyForLoadBalancing
public void setUseTopologyForLoadBalancing(Boolean useTopologyForLoadBalancing)
-
isUseTopologyForLoadBalancing
public Boolean isUseTopologyForLoadBalancing()
-
getProducerWindowSize
public Integer getProducerWindowSize()
Get producer window size- Returns:
- The value
-
setProducerWindowSize
public void setProducerWindowSize(Integer producerWindowSize)
Set producer window size- Parameters:
producerWindowSize- The value
-
getProtocolManagerFactoryStr
public String getProtocolManagerFactoryStr()
-
setProtocolManagerFactoryStr
public void setProtocolManagerFactoryStr(String protocolManagerFactoryStr)
-
getDeserializationBlackList
public String getDeserializationBlackList()
-
setDeserializationBlackList
public void setDeserializationBlackList(String deserializationBlackList)
-
getDeserializationWhiteList
public String getDeserializationWhiteList()
-
setDeserializationWhiteList
public void setDeserializationWhiteList(String deserializationWhiteList)
-
getMinLargeMessageSize
public Integer getMinLargeMessageSize()
Get min large message size- Returns:
- The value
-
setMinLargeMessageSize
public void setMinLargeMessageSize(Integer minLargeMessageSize)
Set min large message size- Parameters:
minLargeMessageSize- The value
-
getBlockOnAcknowledge
public Boolean getBlockOnAcknowledge()
Get block on acknowledge- Returns:
- The value
-
setBlockOnAcknowledge
public void setBlockOnAcknowledge(Boolean blockOnAcknowledge)
Set block on acknowledge- Parameters:
blockOnAcknowledge- The value
-
getBlockOnNonDurableSend
public Boolean getBlockOnNonDurableSend()
Get block on non durable send- Returns:
- The value
-
setBlockOnNonDurableSend
public void setBlockOnNonDurableSend(Boolean blockOnNonDurableSend)
Set block on non durable send- Parameters:
blockOnNonDurableSend- The value
-
getBlockOnDurableSend
public Boolean getBlockOnDurableSend()
Get block on durable send- Returns:
- The value
-
setBlockOnDurableSend
public void setBlockOnDurableSend(Boolean blockOnDurableSend)
Set block on durable send- Parameters:
blockOnDurableSend- The value
-
getAutoGroup
public Boolean getAutoGroup()
Get auto group- Returns:
- The value
-
setAutoGroup
public void setAutoGroup(Boolean autoGroup)
Set auto group- Parameters:
autoGroup- The value
-
getPreAcknowledge
public Boolean getPreAcknowledge()
Get pre acknowledge- Returns:
- The value
-
setPreAcknowledge
public void setPreAcknowledge(Boolean preAcknowledge)
Set pre acknowledge- Parameters:
preAcknowledge- The value
-
getInitialConnectAttempts
public Integer getInitialConnectAttempts()
Get number of initial connect attempts- Returns:
- The value
-
setInitialConnectAttempts
public void setInitialConnectAttempts(Integer initialConnectAttempts)
Set number of initial connect attempts- Parameters:
initialConnectAttempts- The value
-
getInitialMessagePacketSize
public Integer getInitialMessagePacketSize()
Get initial message packet size- Returns:
- The value
-
setInitialMessagePacketSize
public void setInitialMessagePacketSize(Integer initialMessagePacketSize)
Set initial message packet size- Parameters:
initialMessagePacketSize- The value
-
getRetryInterval
public Long getRetryInterval()
Get retry interval- Returns:
- The value
-
setRetryInterval
public void setRetryInterval(Long retryInterval)
Set retry interval- Parameters:
retryInterval- The value
-
getRetryIntervalMultiplier
public Double getRetryIntervalMultiplier()
Get retry interval multiplier- Returns:
- The value
-
setRetryIntervalMultiplier
public void setRetryIntervalMultiplier(Double retryIntervalMultiplier)
Set retry interval multiplier- Parameters:
retryIntervalMultiplier- The value
-
getMaxRetryInterval
public Long getMaxRetryInterval()
Get maximum time for retry interval- Returns:
- The value
-
setMaxRetryInterval
public void setMaxRetryInterval(Long maxRetryInterval)
Set maximum time for retry interval- Parameters:
maxRetryInterval- The value
-
getReconnectAttempts
public Integer getReconnectAttempts()
Get number of reconnect attempts- Returns:
- The value
-
setReconnectAttempts
public void setReconnectAttempts(Integer reconnectAttempts)
Set number of reconnect attempts- Parameters:
reconnectAttempts- The value
-
getConnectionLoadBalancingPolicyClassName
public String getConnectionLoadBalancingPolicyClassName()
-
setConnectionLoadBalancingPolicyClassName
public void setConnectionLoadBalancingPolicyClassName(String connectionLoadBalancingPolicyClassName)
-
getScheduledThreadPoolMaxSize
public Integer getScheduledThreadPoolMaxSize()
-
setScheduledThreadPoolMaxSize
public void setScheduledThreadPoolMaxSize(Integer scheduledThreadPoolMaxSize)
-
getThreadPoolMaxSize
public Integer getThreadPoolMaxSize()
-
setThreadPoolMaxSize
public void setThreadPoolMaxSize(Integer threadPoolMaxSize)
-
getUseGlobalPools
public Boolean getUseGlobalPools()
-
setUseGlobalPools
public void setUseGlobalPools(Boolean useGlobalPools)
-
getUserName
public String getUserName()
Get the user name- Returns:
- The value
-
setUserName
public void setUserName(String userName)
Set the user name- Parameters:
userName- The value
-
getPassword
public String getPassword()
Get the password- Returns:
- The value
-
setPassword
public void setPassword(String password)
Set the password- Parameters:
password- The value
-
isUseJNDI
public boolean isUseJNDI()
- Returns:
- the useJNDI
-
setUseJNDI
public void setUseJNDI(Boolean value)
- Parameters:
value- the useJNDI to set
-
getJndiParams
public String getJndiParams()
- Returns:
- return the jndi params to use
-
setJndiParams
public void setJndiParams(String jndiParams)
-
getParsedJndiParams
public Hashtable<?,?> getParsedJndiParams()
-
getClientID
public String getClientID()
Get the client ID- Returns:
- The value
-
setClientID
public void setClientID(String clientID)
Set the client ID- Parameters:
clientID- The client id
-
getGroupID
public String getGroupID()
Get the group ID- Returns:
- The value
-
setGroupID
public void setGroupID(String groupID)
Set the group ID- Parameters:
groupID- The group id
-
getUseLocalTx
public Boolean getUseLocalTx()
Get the use XA flag- Returns:
- The value
-
setUseLocalTx
public void setUseLocalTx(Boolean localTx)
Set the use XA flag- Parameters:
localTx- The value
-
getSetupAttempts
public int getSetupAttempts()
-
setSetupAttempts
public void setSetupAttempts(Integer setupAttempts)
-
getSetupInterval
public long getSetupInterval()
-
setSetupInterval
public void setSetupInterval(Long interval)
-
equals
public boolean equals(Object obj)
Indicates whether some other object is "equal to" this one.
-
hashCode
public int hashCode()
Return the hash code for the object
-
getWorkManager
public javax.resource.spi.work.WorkManager getWorkManager()
Get the work manager- Returns:
- The manager
-
createSession
public ClientSession createSession(ClientSessionFactory parameterFactory, int ackMode, String user, String pass, Boolean preAck, Integer dupsOkBatchSize, Integer transactionBatchSize, boolean deliveryTransacted, boolean useLocalTx, Integer txTimeout) throws Exception
- Throws:
Exception
-
getRecoveryManager
public RecoveryManager getRecoveryManager()
-
getProperties
public ActiveMQRAProperties getProperties()
Get the resource adapter properties- Returns:
- The properties
-
setup
protected void setup() throws ActiveMQExceptionSetup the factory- Throws:
ActiveMQException
-
getActivations
public Map<javax.resource.spi.ActivationSpec,ActiveMQActivation> getActivations()
-
getDefaultActiveMQConnectionFactory
public ActiveMQConnectionFactory getDefaultActiveMQConnectionFactory() throws javax.resource.ResourceException
- Throws:
javax.resource.ResourceException
-
getJgroupsChannelLocatorClass
public String getJgroupsChannelLocatorClass()
-
setJgroupsChannelLocatorClass
public void setJgroupsChannelLocatorClass(String jgroupsChannelLocatorClass)
-
getJgroupsChannelRefName
public String getJgroupsChannelRefName()
- Returns:
- See Also:
ActiveMQRAProperties.getJgroupsChannelRefName()
-
setJgroupsChannelRefName
public void setJgroupsChannelRefName(String jgroupsChannelRefName)
-
getConnectionFactory
public ActiveMQConnectionFactory getConnectionFactory(ConnectionFactoryProperties overrideProperties)
-
newConnectionFactory
public ActiveMQConnectionFactory newConnectionFactory(ConnectionFactoryProperties overrideProperties)
-
createRecoveryActiveMQConnectionFactory
public ActiveMQConnectionFactory createRecoveryActiveMQConnectionFactory(ConnectionFactoryProperties overrideProperties)
-
createBroadcastEndpointFactory
protected BroadcastEndpointFactory createBroadcastEndpointFactory(ConnectionFactoryProperties overrideProperties)
-
overrideConnectionParameters
public Map<String,Object> overrideConnectionParameters(Map<String,Object> connectionParams, Map<String,Object> overrideConnectionParams)
-
setManagedConnectionFactory
public void setManagedConnectionFactory(ActiveMQRAManagedConnectionFactory activeMQRAManagedConnectionFactory)
-
getCodec
public String getCodec()
-
closeConnectionFactory
public void closeConnectionFactory(ConnectionFactoryProperties properties)
-
isIgnoreJTA
public Boolean isIgnoreJTA()
-
setIgnoreJTA
public void setIgnoreJTA(Boolean ignoreJTA)
-
-