public class JBPMBamSimulationDataProviderTest {
@BeforeClass
public static void setupPoolingDataSource2() {
System.setProperty("java.naming.factory.initial", "bitronix.tm.jndi.BitronixInitialContextFactory");
PoolingDataSource pds = new PoolingDataSource();
pds.setUniqueName("jdbc/jbpm-ds");
pds.setClassName("bitronix.tm.resource.jdbc.lrc.LrcXADataSource");
pds.setMaxPoolSize(5);
pds.setAllowLocalTransactions(true);
pds.getDriverProperties().put("user", "jbpm");
pds.getDriverProperties().put("password", "jbpm");
pds.getDriverProperties().put("url", "jdbc:postgresql://localhost:5432/jbpm");
pds.getDriverProperties().put("driverClassName", "org.postgresql.Driver");
pds.init();
}