Implements the
javax.jms.Connection
interface.
A Connection object allows the client's active connection to the Joram server. Connections support concurrent use, it serves several purposes:
- It encapsulates the real connection with the Joram server (for example an open TCP/IP socket between the client and the server).
- It needs the client authentication.
- It specifies a unique client identifier.
- It supports the ExceptionListener object.
A Joram client typically creates a connection, one or more sessions, and a number of message producers and consumers.
When a connection is created, it is in stopped mode that means that no messages are being delivered. In order to minimize any client confusion that may result from asynchronous message delivery during setup, it is typical to leave the connection in stopped mode until setup is complete. A message producer can send messages while a connection is stopped.