Skip to content

Allow pools used by Atomikos and Bitronix to be configured declaratively using the environment #2027

@wilkinsona

Description

@wilkinsona

See this question on Stack Overflow. You have to do this at the moment:

@Bean
public XAConnectionFactoryWrapper xaConnectionFactoryWrapper() {
    return new XAConnectionFactoryWrapper() {
        @Override
        public ConnectionFactory wrapConnectionFactory(
                XAConnectionFactory connectionFactory) {
            PoolingConnectionFactoryBean pool = new PoolingConnectionFactoryBean();
            pool.setConnectionFactory(connectionFactory);
            pool.setMaxPoolSize(50);
            return pool;
        }

    };
}

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions