Currently, if CachingConnectionFactory is excluded no ConnectionFactory is created.

Comment From: eddumelendez

PR #17531 fixed it in ActiveMQ

Comment From: snicoll

Good catch, thanks @eddumelendez!