For the following config:
I get the error "SingleConnectionFactory does not support custom username and password" and the connection never gets created if I use a CachingConnectionFactory as the targetConnectionFactory. Works fine if I use a vanilla ConnectionFactory. I want to have both, credentials as well as caching of connections/sessions/consumers, How do I do this?
<bean id="subUserCredentialsConnectionFactory" class="org.springframework.jms.connection.UserCredentialsConnectionFactoryAdapter"> <property name="targetConnectionFactory" ref="connFactory"/> <property name="username" value="abc" /> <property name="password" value="xyz" /> </bean>