testNames.add("Simple Entity Bean creation (serialized)");
testResults.add(result);
nbTests++;
}
if (req.getParameter("createComplexEntity") != null) {
ComplexEntityHome home;
float[] result;
home = (ComplexEntityHome)ctx.lookup("ComplexEntity");
result = testComplexCreateEntity(home);
testNames.add("Complex Entity Bean creation (optimized)");
testResults.add(result);
nbTests++;
home = (ComplexEntityHome)ctx.lookup("NonOptComplexEntity");
result = testComplexCreateEntity(home);
testNames.add("Complex Entity Bean creation (serialized)");
testResults.add(result);
nbTests++;
}
if (req.getParameter("readEntity") != null) {
SimpleEntityHome home;
float[] result;
home = (SimpleEntityHome)ctx.lookup("SimpleEntity");
result = readEntity(home);
testNames.add("Read-only call on an entity bean (optimized)");
testResults.add(result);
nbTests++;
home = (SimpleEntityHome)ctx.lookup("NonOptSimpleEntity");
result = readEntity(home);
testNames.add("Read-only call on an entity bean (serialized)");
testResults.add(result);
nbTests++;
}
if (req.getParameter("writeEntity") != null) {
ComplexEntityHome home;
float[] result;
home = (ComplexEntityHome)ctx.lookup("ComplexEntity");
result = writeEntity(home);
testNames.add("Write call to entity (optimized)");