log.info("Hit a key to subscribe on topic " + oid);
try { System.in.read(); } catch(java.io.IOException e) {}
SubscribeKey sk = new SubscribeKey(glob, oid);
SubscribeQos sq = new SubscribeQos(glob);
SubscribeReturnQos subRet = xmlBlasterAccess.subscribe(sk, sq);
log.info("Subscribed for " + sk.toXml() + "\n" + sq.toXml() + " return:\n" + subRet.toXml());
log.info("Hit a key to publish '" + oid + "'");
try { System.in.read(); } catch(java.io.IOException e) {}
MsgUnit msgUnit = new MsgUnit(glob, "<key oid='"+oid+"'/>", "Hi".getBytes(), "<qos><persistent>true</persistent></qos>");
PublishReturnQos publishReturnQos = xmlBlasterAccess.publish(msgUnit);