Package com.webmethods.jms.impl
Class WmXAConnectionFactoryImpl
- java.lang.Object
-
- com.webmethods.jms.impl.WmConnectionFactoryImpl
-
- com.webmethods.jms.impl.WmXAConnectionFactoryImpl
-
- All Implemented Interfaces:
WmConnectionFactory
,java.io.Externalizable
,java.io.Serializable
,javax.jms.ConnectionFactory
,javax.jms.XAConnectionFactory
,javax.naming.Referenceable
- Direct Known Subclasses:
WmXAQueueConnectionFactoryImpl
,WmXATopicConnectionFactoryImpl
public class WmXAConnectionFactoryImpl extends WmConnectionFactoryImpl implements javax.jms.XAConnectionFactory, javax.naming.Referenceable, java.io.Externalizable
- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class com.webmethods.jms.impl.WmConnectionFactoryImpl
_clusterPolicyName, _compositeChildConnFactories, _logApi, APPLICATION, BROKER_CLUSTER, BROKER_HOST, BROKER_LIST, BROKER_LIST_ORDER, BROKER_NAME, CLIENT_GROUP, CLIENT_ID, CLUSTER_CREATED_TIME, CLUSTER_DOCSIZE_DATA, CLUSTER_INCLUDE_ALL, CLUSTER_MULTISEND_BROKERCOUNT, CLUSTER_MULTISEND_COUNT, CLUSTER_NAME, CLUSTER_POLICY, CLUSTER_POLICY_OVERRIDE, CLUSTER_REFRESH_INTERVAL, CLUSTER_WEIGHTED_ROUNDROBIN_DATA, COMPOSITE_CHILD_CLUSTER_FACTORY_OBJECTS, COMPOSITE_CLUSTER_FACTORIES, MARSHAL_IN, MARSHAL_OUT, READ_ONLY, SSL_CIPHERSUITES, SSL_ENCRYPTED, SSL_KEYSTORE, SSL_KEYSTORETYPE, SSL_TRUSTSTORE, SSL_TRUSTSTORETYPE
-
Fields inherited from interface com.webmethods.jms.WmConnectionFactory
DEFAULT_APPLICATION_NAME, DEFAULT_BROKER_LIST_ORDER, DEFAULT_CLIENT_GROUP, DEFAULT_KEYSTORE_TYPE, DEFAULT_TRUSTSTORE_TYPE
-
-
Constructor Summary
Constructors Constructor Description WmXAConnectionFactoryImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
readExternal(java.io.ObjectInput in)
void
setClusterPolicy(int policy)
Assign the given cluster policy name to the connection factory.void
setClusterPolicyName(java.lang.String policyName)
Assign the given cluster policy name to the connection factory.void
setCompositeChildConnFactories(java.util.concurrent.CopyOnWriteArrayList<WmConnectionFactory> childConnFactories)
Set a list of child Cluster Connection Factory objects for this connection factory.void
writeExternal(java.io.ObjectOutput out)
-
Methods inherited from class com.webmethods.jms.impl.WmConnectionFactoryImpl
compareConnectionFactory, createConnection, createConnection, createConnection, createQueueConnection, createQueueConnection, createQueueConnection, createTopicConnection, createTopicConnection, createTopicConnection, createXAConnection, createXAConnection, createXAConnection, createXAQueueConnection, createXAQueueConnection, createXAQueueConnection, createXATopicConnection, createXATopicConnection, createXATopicConnection, fromPropertyString, getApplication, getAutomaticControlLabel, getBrokerCluster, getBrokerHost, getBrokerList, getBrokerListOrder, getBrokerName, getBrokerURLs, getClientGroup, getClientID, getClusterConnectionId, getClusterCreationTime, getClusterName, getClusterPolicy, getClusterPolicyName, getClusterPolicyOverride, getClusterRefreshInterval, getCompositeChildConnFactories, getCompositeClusterCF, getDefaultClientGroup, getDocSizeDataMap, getDocSizeList, getIncludeAllBrokers, getIsCompositeFactory, getMarshalIn, getMarshalInClassName, getMarshalOut, getMarshalOutClassName, getMultiSendCount, getPolicy, getPolicyName, getReadOnly, getReference, getSSLEncrypted, getSSLKeystore, getSSLKeystoreType, getSSLTruststore, getSSLTruststoreType, getWeightedRoundRobinDataMap, getWeightedRoundRobinList, isClusterFactory, isCompositeClusterFactory, makePropertyString, setApplication, setAttribute, setAutomaticControlLabel, setBrokerCluster, setBrokerHost, setBrokerList, setBrokerListOrder, setBrokerName, setClientGroup, setClientID, setClusterConnectionId, setClusterCreationTime, setClusterName, setClusterPolicyOverride, setClusterRefreshInterval, setCompositeClusterCF, setDocSizeDataMap, setDocSizeList, setIncludeAllBrokers, setIsCompositeFactory, setMarshalIn, setMarshalInClassName, setMarshalOut, setMarshalOutClassName, setMultiSendCount, setReadOnly, setSSLEncrypted, setSSLKeystore, setSSLKeystoreType, setSSLTruststore, setSSLTruststoreType, setWeightedRoundRobinDataMap, setWeightedRoundRobinList, toString
-
-
-
-
Method Detail
-
writeExternal
public void writeExternal(java.io.ObjectOutput out) throws java.io.IOException
- Specified by:
writeExternal
in interfacejava.io.Externalizable
- Overrides:
writeExternal
in classWmConnectionFactoryImpl
- Throws:
java.io.IOException
-
readExternal
public void readExternal(java.io.ObjectInput in) throws java.io.IOException, java.lang.ClassNotFoundException
- Specified by:
readExternal
in interfacejava.io.Externalizable
- Overrides:
readExternal
in classWmConnectionFactoryImpl
- Throws:
java.io.IOException
java.lang.ClassNotFoundException
-
setCompositeChildConnFactories
public void setCompositeChildConnFactories(java.util.concurrent.CopyOnWriteArrayList<WmConnectionFactory> childConnFactories) throws javax.jms.JMSException
Description copied from interface:WmConnectionFactory
Set a list of child Cluster Connection Factory objects for this connection factory. This would enable the factory as a composite factory containing one or more child cluster factories. Each child cluster connection factory object in turn contains all the cluster broker and load balancing policy details it is governed by.- Specified by:
setCompositeChildConnFactories
in interfaceWmConnectionFactory
- Overrides:
setCompositeChildConnFactories
in classWmConnectionFactoryImpl
- Parameters:
childConnFactories
- of child cluster connection factory objects- Throws:
javax.jms.JMSException
-
setClusterPolicy
public void setClusterPolicy(int policy) throws javax.jms.JMSException
Assign the given cluster policy name to the connection factory.- Specified by:
setClusterPolicy
in interfaceWmConnectionFactory
- Overrides:
setClusterPolicy
in classWmConnectionFactoryImpl
- Parameters:
policy
-- Throws:
javax.jms.JMSException
- if the Cluster policy is not supported
-
setClusterPolicyName
public void setClusterPolicyName(java.lang.String policyName) throws javax.jms.JMSException
Description copied from class:WmConnectionFactoryImpl
Assign the given cluster policy name to the connection factory.- Specified by:
setClusterPolicyName
in interfaceWmConnectionFactory
- Overrides:
setClusterPolicyName
in classWmConnectionFactoryImpl
- Parameters:
policyName
- - a Cluster policy name from the below list ROUND_ROBIN (default) STICKY RANDOM WEIGHTED_ROUND_ROBIN MULTISEND_GUARANTEED MULTISEND_BEST_EFFORT- Throws:
javax.jms.JMSException
- if the Cluster Policy is not supported
-
-