Committing a Transaction
Use the commit method to commit an open transaction, or use the commitAll method to commit a given list of open transactions.
Note that all work performed on these transactions will be finalized. The following example contains an excerpt that shows the use of the commit method.
. . .
// commit transaction
try {
pub.commit();
} catch (BrokerException ex) {
System.out.println ("Error on commit" +ex);
return;
}
}
. . .