Class WmXAConnectionFactoryImpl

    • Constructor Detail

      • WmXAConnectionFactoryImpl

        public WmXAConnectionFactoryImpl()
    • Method Detail

      • writeExternal

        public void writeExternal​(java.io.ObjectOutput out)
                           throws java.io.IOException
        Specified by:
        writeExternal in interface java.io.Externalizable
        Overrides:
        writeExternal in class WmConnectionFactoryImpl
        Throws:
        java.io.IOException
      • readExternal

        public void readExternal​(java.io.ObjectInput in)
                          throws java.io.IOException,
                                 java.lang.ClassNotFoundException
        Specified by:
        readExternal in interface java.io.Externalizable
        Overrides:
        readExternal in class WmConnectionFactoryImpl
        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 interface WmConnectionFactory
        Overrides:
        setCompositeChildConnFactories in class WmConnectionFactoryImpl
        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 interface WmConnectionFactory
        Overrides:
        setClusterPolicy in class WmConnectionFactoryImpl
        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 interface WmConnectionFactory
        Overrides:
        setClusterPolicyName in class WmConnectionFactoryImpl
        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