## Uses of Interface
javax.jms.Connection

- Packages that use Connection
  Package | Description
  --- | ---
  javax.jms | The Java Message Service (JMS) API provides a common way for Java programs to create, send, receive and read an enterprise messaging system's messages.

- - ### Uses of Connection in javax.jms

    Subinterfaces of Connection in javax.jms
    Modifier and Type | Interface and Description
    --- | ---
    `interface` | `QueueConnection` A `QueueConnection` object is an active connection to a point-to-point JMS provider.
    `interface` | `TopicConnection` A `TopicConnection` object is an active connection to a publish/subscribe JMS provider.
    `interface` | `XAConnection` The `XAConnection` interface extends the capability of `Connection` by providing an `XASession` (optional).
    `interface` | `XAQueueConnection` An `XAQueueConnection` provides the same create options as `QueueConnection` (optional).
    `interface` | `XATopicConnection` An `XATopicConnection` provides the same create options as `TopicConnection` (optional).

    Methods in javax.jms that return Connection
    Modifier and Type | Method and Description
    --- | ---
    `Connection` | ConnectionFactory.`createConnection()` Creates a connection with the default user identity.
    `Connection` | ConnectionFactory.`createConnection(String userName, String password)` Creates a connection with the specified user identity.

Copyright © 1996-2013, Oracle and/or its affiliates. All Rights Reserved. Use is subject to license terms.