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);
log.info("Successfully published message to xmlBlaster, msg=" + msgUnit.toXml() + "\n returned QoS=" + publishReturnQos.toXml());
try { Thread.sleep(1000L); } catch( InterruptedException i) {} // wait for update
{
log.info("Hit a key to 3 times publishOneway '" + oid + "'");
try { System.in.read(); } catch(java.io.IOException e) {}