* @throws javax.jms.JMSException if the transaction could not be committed
*/
public static DbTxn commitTransaction(DbTxn transaction) throws JMSException {
try {
CurrentTransaction currentTxn = CurrentTransaction.getInstance(cachedEnvironment);
currentTxn.commitTxn();
return null;
}
catch (DbException e) {
throw JMSExceptionHelper.newJMSException("Failed to commit transaction: " + transaction + " in container: " + e, e);
}