Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
wilkinsona opened this issue Dec 1, 2014 · 0 comments
Assignees
Labels
type: enhancement A general enhancement
Milestone

Comments

@wilkinsona
Copy link
Member

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;
        }

    };
}
@wilkinsona wilkinsona added the type: enhancement A general enhancement label Dec 1, 2014
@philwebb philwebb modified the milestones: 1.2.1, 1.2.2 Dec 10, 2014
@wilkinsona wilkinsona self-assigned this Jan 22, 2015
@wilkinsona wilkinsona changed the title Allow Bitronix's JMS pool to be configured declaratively Allow pools used by Atomikos and Bitronix to be configured declaratively using the environment Jan 27, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: enhancement A general enhancement
Projects
None yet
Development

No branches or pull requests

2 participants