org.apache.activemq.artemis.jms.client

## Interface ActiveMQConnectionForContext

- All Superinterfaces:
    AutoCloseable, javax.jms.Connection
  All Known Implementing Classes:
    ActiveMQConnection, ActiveMQConnectionForContextImpl, ActiveMQXAConnection

      public interface ActiveMQConnectionForContext
      extends javax.jms.Connection

  Interface created to support reference counting all contexts using it.

  Necessary to support `JMSContext.close()` conditions.

  See Also:
    `JMSContext`

- - ### Method Summary

    All Methods Instance Methods Abstract Methods
    Modifier and Type | Method and Description
    --- | ---
    `void` | `closeFromContext()`
    `javax.jms.JMSContext` | `createContext(int sessionMode)`
    `javax.jms.XAJMSContext` | `createXAContext()`

    - ### Methods inherited from interface javax.jms.Connection

      `close, createConnectionConsumer, createDurableConnectionConsumer, createSession, createSession, createSession, createSharedConnectionConsumer, createSharedDurableConnectionConsumer, getClientID, getExceptionListener, getMetaData, setClientID, setExceptionListener, start, stop`

- - ### Method Detail

    - #### createContext

          javax.jms.JMSContext createContext(int sessionMode)

    - #### createXAContext

          javax.jms.XAJMSContext createXAContext()

    - #### closeFromContext

          void closeFromContext()

Copyright © 2017. All rights reserved.