BATCH-604:JdbcStepExecutionDao will now deserialize object correctly.

This commit is contained in:
lucasward
2008-04-25 20:13:31 +00:00
parent 0113be7585
commit 66e91b0dbe
4 changed files with 54 additions and 7 deletions

View File

@@ -107,7 +107,7 @@ public class JdbcStepExecutionDao extends AbstractJdbcBatchMetadataDao implement
executionContext.putDouble(key, rs.getDouble("DOUBLE_VAL"));
}
else if (type == AttributeType.OBJECT) {
executionContext.put(key, rs.getObject("OBJECT_VAL"));
executionContext.put(key, SerializationUtils.deserialize(rs.getBinaryStream("OBJECT_VAL")));
}
else {
throw new UnexpectedJobExecutionException("Invalid type found: [" + typeCd