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