-
Notifications
You must be signed in to change notification settings - Fork 1
JpoRx Configuration Default
Francesco edited this page Jul 12, 2015
·
2 revisions
Creation of a new instance of JpoRx:
import javax.sql.DataSource;
import com.jporm.rx.session.datasource.JpoRxDataSourceBuilder;
public class sdfsdf {
// Your datasource here
public JpoRx newInstance(DataSource datasource, int maxParallelConnections) {
// Use the JpoRxDataSourceBuilder to create a new instance of JPO.
// The maxParallelConnections parameter indicates how many parallel connections
// Jpo will use at max
return new JpoRxDataSourceBuilder().build(datasource, maxParallelConnections);
}