## Uses of Interface
org.apache.activemq.artemis.api.core.client.ClientSessionFactory

- Packages that use ClientSessionFactory
  Package | Description
  --- | ---
  org.apache.activemq.artemis.api.core.client |
  org.apache.activemq.artemis.jms.client |
  org.apache.activemq.artemis.jms.server |
  org.apache.activemq.artemis.spi.core.remoting |

- - ### Uses of ClientSessionFactory in org.apache.activemq.artemis.api.core.client

    Methods in org.apache.activemq.artemis.api.core.client that return ClientSessionFactory
    Modifier and Type | Method | Description
    --- | --- | ---
    `ClientSessionFactory` | ClientSessionFactory.`addFailoverListener​(FailoverEventListener listener)` | Adds a FailoverEventListener to the session which is notified if a failover event occurs on the session.
    `ClientSessionFactory` | ServerLocator.`createSessionFactory()` | Creates a ClientSessionFactory using whatever load balancing policy is in force
    `ClientSessionFactory` | ServerLocator.`createSessionFactory​(java.lang.String nodeID)` | Creates a `ClientSessionFactory` to a specific server.
    `ClientSessionFactory` | ServerLocator.`createSessionFactory​(TransportConfiguration transportConfiguration)` | Creates a `ClientSessionFactory` to a specific server.
    `ClientSessionFactory` | ServerLocator.`createSessionFactory​(TransportConfiguration transportConfiguration, int reconnectAttempts)` | Creates a `ClientSessionFactory` to a specific server.
    `ClientSessionFactory` | ServerLocator.`createSessionFactory​(TransportConfiguration transportConfiguration, int reconnectAttempts, boolean failoverOnInitialConnection)` | Deprecated. This method is no longer acceptable to create a client session factory.
    `ClientSessionFactory` | ClientSession.`getSessionFactory()` | Return the sessionFactory used to created this Session.

  - ### Uses of ClientSessionFactory in org.apache.activemq.artemis.jms.client

    Methods in org.apache.activemq.artemis.jms.client that return ClientSessionFactory
    Modifier and Type | Method | Description
    --- | --- | ---
    `ClientSessionFactory` | ActiveMQConnection.`getSessionFactory()` |

    Constructors in org.apache.activemq.artemis.jms.client with parameters of type ClientSessionFactory
    Constructor | Description
    --- | ---
    `ActiveMQConnection​(ConnectionFactoryOptions options, java.lang.String username, java.lang.String password, int connectionType, java.lang.String clientID, int dupsOKBatchSize, int transactionBatchSize, boolean cacheDestinations, boolean enable1xPrefixes, ClientSessionFactory sessionFactory)` |
    `ActiveMQXAConnection​(ConnectionFactoryOptions options, java.lang.String username, java.lang.String password, int connectionType, java.lang.String clientID, int dupsOKBatchSize, int transactionBatchSize, boolean cacheDestinations, boolean enable1xNaming, ClientSessionFactory sessionFactory)` |

  - ### Uses of ClientSessionFactory in org.apache.activemq.artemis.jms.server

    Methods in org.apache.activemq.artemis.jms.server with parameters of type ClientSessionFactory
    Modifier and Type | Method | Description
    --- | --- | ---
    `void` | ActiveMQJMSServerLogger_$logger.`xaRecoverConnectionError​(java.lang.Exception e, ClientSessionFactory csf)` |
    `void` | ActiveMQJMSServerLogger.`xaRecoverConnectionError​(java.lang.Exception e, ClientSessionFactory csf)` |

  - ### Uses of ClientSessionFactory in org.apache.activemq.artemis.spi.core.remoting

    Methods in org.apache.activemq.artemis.spi.core.remoting that return ClientSessionFactory
    Modifier and Type | Method | Description
    --- | --- | ---
    `ClientSessionFactory` | ClientProtocolManager.`getSessionFactory()` |

    Methods in org.apache.activemq.artemis.spi.core.remoting with parameters of type ClientSessionFactory
    Modifier and Type | Method | Description
    --- | --- | ---
    `void` | ClientProtocolManager.`setSessionFactory​(ClientSessionFactory factory)` |