{
log.info("Hit a key to get '" + oid + "'");
try { System.in.read(); } catch(java.io.IOException e) {}
GetKey gk = new GetKey(glob, oid);
GetQos gq = new GetQos(glob);
MsgUnit[] msgs = xmlBlasterAccess.get(gk, gq);
log.info("Successfully got message from xmlBlaster, msg=" + msgs[0].toXml());
}
int numGetCached = 4;
xmlBlasterAccess.createSynchronousCache(100);
for (int i=0; i<numGetCached; i++) {
log.info("Hit a key to getCached '" + oid + "' #"+i+"/"+numGetCached);
try { System.in.read(); } catch(java.io.IOException e) {}
GetKey gk = new GetKey(glob, oid);
GetQos gq = new GetQos(glob);
MsgUnit[] msgs = xmlBlasterAccess.getCached(gk, gq);
log.info("Successfully got message from xmlBlaster, msg=" + msgs[0].toXml());
}
log.info("Hit a key to unSubscribe on topic '" + oid + "' and '" + subRet.getSubscriptionId() + "'");