Global global = new Global(args);
ConnectQos qos = new ConnectQos(global, userName + "/" + sessionId, "secret");
qos.getSessionCbQueueProperty().setMaxEntries(10L);
qos.getSessionCbQueueProperty().setMaxEntriesCache(10L);
I_XmlBlasterAccess conn = global.getXmlBlasterAccess();
conn.connect(qos, this);
SubscribeKey subKey = new SubscribeKey(global, topicName);
SubscribeQos subQos = new SubscribeQos(global);
conn.subscribe(subKey, subQos);
// conn.leaveServer(null);
DisconnectQos disconnectQos = new DisconnectQos(global);