@SpringSessionTransactionManager
    @Bean
    @Primary
    public PlatformTransactionManager jdbcSessionTransactionManager(
        final ObjectProvider<DataSource> dataSource) {
        val ds = dataSource.getIfAvailable();
        return ds != null ? new DataSourceTransactionManager(ds) : new PseudoTransactionManager();
    }
This is {@link CasJdbcSessionAutoConfiguration}.

@author Misagh Moayyed
@since 6.0.0
support/cas-server-support-session-jdbc/src/main/java/org/apereo/cas/config/CasJdbcSessionAutoConfiguration.java