con.connect(qos, this); // Login to xmlBlaster, register for updates
// Subscribe for the volatile message
SubscribeKey sk = new SubscribeKey(glob, "HelloWorldVolatile");
SubscribeQos sq = new SubscribeQos(glob);
SubscribeReturnQos subRet = con.subscribe(sk, sq);
// Publish a volatile message
PublishKey pk = new PublishKey(glob, "HelloWorldVolatile", "text/xml", "1.0");
PublishQos pq = new PublishQos(glob);
pq.setVolatile(true);