## Uses of Interface
javax.jms.Connection

Packages that use Connection
Package | Description
--- | ---
com.sun.messaging | Provides the Oracle GlassFish(tm) Server Message Queue public classes.
com.sun.messaging.jms | Provides additional Oracle GlassFish(tm) Server Message Queue classes for features that relate to the MQ implementation of the Java Message Service (JMS).
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 com.sun.messaging

Methods in com.sun.messaging that return Connection
Modifier and Type | Method and Description
--- | ---
`Connection` | BasicConnectionFactory.`createConnection()` Creates a Connection with the default user identity.
`Connection` | BasicConnectionFactory.`createConnection(String username, String password)` Creates a Connection with a specified user identity.

### Uses of Connection in com.sun.messaging.jms

Subinterfaces of Connection in com.sun.messaging.jms
Modifier and Type | Interface and Description
--- | ---
`interface` | `Connection` This interafce provides the following API for the MQ applications:

### 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.