joiners = new ArrayList();
leaseList = new Vector();
creatorListener = new ServiceCreatorListener();
destroyListener = new JobDestroyListener();
ServiceItem si;
ServiceTemplate st;
LookupDiscoveryManager discovery = new
LookupDiscoveryManager(spaceGroups, locators, null);
ServiceDiscoveryManager serviceDiscoveryManager = new
ServiceDiscoveryManager(discovery, null);
System.out.print("...");
st = new ServiceTemplate(null, spaceClss, spaceEntries);
si = serviceDiscoveryManager.lookup(st, null,
10 * 1000);
if(si != null && si.service != null) {
space = (JavaSpace) si.service;
si = null;
System.out.print("...");
} else {
throw
new RMServerException("JobRepository not found");
}
discovery.setGroups(txnGroups);
st = new ServiceTemplate(txnID, txnClss, txnEntries);
si = serviceDiscoveryManager.lookup(st, null,
10 * 1000);
if(si != null && si.service != null) {
txnMgr = (TransactionManager) si.service;
si = null;