TransactionLegacy txn = null;
try {
txn = TransactionLegacy.open(TransactionLegacy.AWSAPI_DB);
for (int i = 0; i < meta.length; i++) {
S3MetaDataEntry entry = meta[i];
MultipartMetaVO metaVO = new MultipartMetaVO();
metaVO.setUploadID(uploadId);
metaVO.setName(entry.getName());
metaVO.setValue(entry.getValue());
metaVO = mpartMetaDao.persist(metaVO);
}
txn.commit();
} finally {
txn.close();