// (This is redundant as it is done by ConnectQos already)
String name = con.getGlobal().getProperty().get("session.name", "AllProtocols");
String passwd = con.getGlobal().getProperty().get("passwd", "secret");
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());