// begin a transaction for the synchronization; it is a
// single threaded transaction
Transaction tx = txMgr.begin(1);
boolean httpException = false;
HttpGroupRequestMediator httpGrm = null;
try {
// execute synchronization using http
String url = HttpUtils.getSynchronizationURL(_ctx, dpr);
httpGrm = new HttpGroupRequestMediator(dpr, allReqs, tx, url);
httpGrm.run();
} catch (Exception e) {
httpException = true;
}
// if web path based synchronization failed
if (httpGrm.isException() || httpException) {
_logger.log(Level.FINE,
"Http based synchronization failed, trying jmx based impl..",
httpGrm.getException());
// re-try the synchronization request using jmx
JmxGroupRequestMediator jmxGrm =
new JmxGroupRequestMediator(dpr, allReqs, tx);
jmxGrm.run();