ConnectQos qos = new ConnectQos(con.getGlobal(), name, passwd);
con.connect(qos, this); // Login to xmlBlaster, register for updates
PublishKey pk = new PublishKey(con.getGlobal(), "AllProtocols", "text/xml", "1.0");
pk.setClientTags("<org.xmlBlaster><demo/></org.xmlBlaster>");
PublishQos pq = new PublishQos(con.getGlobal());
MsgUnit msgUnit = new MsgUnit(pk, "Hi", pq);
con.publish(msgUnit);