Skip to content
Integration with Spring transactions with Ebean
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Type Name Latest commit message Commit time
Failed to load latest commit information.


Integration with Spring managed transactions.

This project provides an Ebean ExternalTransactionManager specifically to integrate with Springs JDBC Transaction manager.

To use

ServerConfig serverConfig = new ServerConfig();

// set SpringJdbcTransactionManager ... as the external transaction manager
serverConfig.setExternalTransactionManager(new SpringJdbcTransactionManager());

EbeanServer server = EbeanServerFactory.create(serverConfig);


You can use Ebean in Spring/Spring Boot without this and that case Ebean manages the Transactions itself. With Ebean managing the transactions there are some benefits with more control over JDBC batch, getGeneratedKeys and a simpler abstraction (as Spring transactions is designed to manage multiple resources such as JDBC Transactions and JPA EntityManager and Ebean only needs to manage JDBC Transactions).

You can’t perform that action at this time.