Skip to content

JEE EJB

Zsolt Herpai edited this page Feb 5, 2015 · 1 revision

JEE EJB containers provide transaction-aware DataSources. It is the simplest way to integrate with FluentJdbc.

@Resource
DataSource dataSource;
...
void createConnectionProvider() {
    ConnectionProvider cp = new DataSourceConnectionProvider(dataSource);
}