conf.setKeepReference( true ); // this is just for documentation purposes, since the default value is "true"
try {
for ( i = 0; i < 300000; i++ ) {
final StatefulSession session = ruleBase.newStatefulSession( conf,
null );
session.dispose();
}
} catch ( Throwable e ) {
System.out.println( "Error at: " + i );
e.printStackTrace();
fail( "Should not raise any error or exception." );