open fun setManagedConnectionFactory(managedConnectionFactory: ManagedConnectionFactory): Unit
Set the JCA ManagerConnectionFactory that should be used to create the desired connection factory.
The ManagerConnectionFactory will usually be set up as separate bean (potentially as inner bean), populated with JavaBean properties: a ManagerConnectionFactory is encouraged to follow the JavaBean pattern by the JCA specification, analogous to a JDBC DataSource and a JPA EntityManagerFactory.
Note that the ManagerConnectionFactory implementation might expect a reference to its JCA 1.7 ResourceAdapter, expressed through the javax.resource.spi.ResourceAdapterAssociation interface. Simply inject the corresponding ResourceAdapter instance into its "resourceAdapter" bean property in this case, before passing the ManagerConnectionFactory into this LocalConnectionFactoryBean.
See Also
javax.resource.spi.ManagedConnectionFactory#createConnectionFactory()