while (loopCounter++ < numberOfLoops ) {
String propertyKey = "DbWorkerKey-" + workerId + "-" + loopCounter;
DB db = DBFactory.getInstance();
PropertyManager pm = PropertyManager.getInstance();
String testValue = "DbWorkerValue-" + workerId + "-" + loopCounter;
Property p = pm.createPropertyInstance(null, null, null, null, propertyKey, null, null, testValue, null);
pm.saveProperty(p);
// forget session cache etc.
db.closeSession();
db = DBFactory.getInstance();
Property p2 = pm.findProperty(null, null, null, null, propertyKey);
String lStr = p2.getStringValue();
if (!testValue.equals(lStr)) {
Tracing.logInfo("Property ERROR testValue=" + testValue + ": lStr=" + lStr, this.getClass());
errorCounter++;
}
db.closeSession();