/**
* @see javax.transaction.xa.XAResource#commit(javax.transaction.xa.Xid, boolean)
*/
public void commit(Xid xid, boolean onePhase) throws XAException {
XidImpl mmXid = getMMXid(xid);
try{
getMMConnection().commitTransaction(mmXid, onePhase);
}catch(SQLException e){
String logMsg = JDBCPlugin.Util.getString("MMXAResource.FailedCommitTXN", xid, onePhase ? "true":"false"); //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$
throw handleError(e, logMsg);