spring-framework / org.springframework.jms.connection / UserCredentialsConnectionFactoryAdapter / createConnection

createConnection

fun createConnection(): Connection

Determine whether there are currently thread-bound credentials, using them if available, falling back to the statically specified username and password (i.e. values of the bean properties) else.

See Also
#doCreateConnection

open fun createConnection(username: String, password: String): Connection

Delegate the call straight to the target ConnectionFactory.