The JMS connection class design is shown below.
The relevant states of the JMS connection are shown below. The connection states are special in that they are dependent on possibly many session states (in JMS, a connection can give rise to multiple sessions).