The JBossMessaging secure-socket smoke test uncovered the fact that Connector does not unregister its server invoker from the MBeanServer (if it has a reference to one).
The problem detected by the JBossMessaging was that when secure-socket runs twice, the first execution passes and the second fails with the exception
javax.net.ssl.SSLException: No available certificate or key corresponds to the SSL cipher suites which are enabled.
The problem was that at the end of the first execution, Connector failed to unregister the server invoker, and during the second execution, it saw the ObjectName registered. The Connector.init() code then failed to pass a reference to the MBeanServer to the server invoker. As a result the server invoker was unable to access the SSLServerSocketFactory MBean configured by the test, and it used a default server socket factory instead.