Releases the given connection, stopping it (if necessary) and eventually closing it.
- The connection to release. (if this is
null, the call will be ignored)
- The ConnectionFactory that the Connection was obtained from. (may be
- whether the Connection might have been started by the application.
Checks ShouldStop, if available. This is essentially a more sophisticated version of CloseConnection
ConnectionFactoryUtils Class | Spring.Messaging.Ems.Connections Namespace