private Global glob;
private final void doLogin() {
try {
System.err.println("HelloWorldNative: Connecting with protocol 'LOCAL' to xmlBlaster\n");
I_XmlBlasterAccess con = new XmlBlasterAccess(glob);
ConnectQos qos = new ConnectQos(this.glob); /* Client side object */
qos.setPtpAllowed(false);
qos.setUserId("A-NATIVE-CLIENT-PLUGIN");
qos.getSessionQos().setSessionTimeout(0L);
con.connect(qos, null); // Login to xmlBlaster as "A-NATIVE-CLIENT-PLUGIN"
//Here we can publish or subscribe etc., see HelloWorld3.java how to do it
con.publish(new MsgUnit(glob, "<key oid='TEST'/>", "Hi", "<qos/>"));
//con.disconnect(null);
}
catch (Exception e) {
System.err.println("HelloWorldNative: We have a problem: " + e.toString());
}