StorageManager storageManager =
SandeshaUtil.getSandeshaStorageManager(serverConfigContext, serverConfigContext.getAxisConfiguration());
Transaction tran = storageManager.getTransaction();
RMDBean finderBean = new RMDBean();
List rmdBeans = storageManager.getRMDBeanMgr().find(finderBean);
tran.commit();
lastError = null;
if (rmdBeans.isEmpty())
lastError = new Error("rmdBeans empty " + rmdBeans);
else {
RMDBean bean = (RMDBean)rmdBeans.get(0);
if (bean.isTerminated())
break;
lastError = new Error("RMDBean not deleted " + bean);
}
}
if(lastError != null) throw lastError;
while(System.currentTimeMillis() < limit) {
Thread.sleep(tickTime); // Try the assertions each tick interval, until they pass or we time out
// Check that the sequence has been deleted.
StorageManager storageManager =
SandeshaUtil.getSandeshaStorageManager(serverConfigContext, serverConfigContext.getAxisConfiguration());
Transaction tran = storageManager.getTransaction();
RMDBean finderBean = new RMDBean();
List rmdBeans = storageManager.getRMDBeanMgr().find(finderBean);
tran.commit();
lastError = null;