if ("IOR".equals(gg.getProperty().get("protocol","IOR")) && ci > 0) {
gg.addObjectEntry(Constants.RELATING_CLIENT+":org.xmlBlaster.util.protocol.corba.OrbInstanceWrapper",
(org.xmlBlaster.util.protocol.corba.OrbInstanceWrapper)manyConnections[ci-1].getGlobal().getObjectEntry(Constants.RELATING_CLIENT+":org.xmlBlaster.util.protocol.corba.OrbInstanceWrapper"));
}
manyConnections[ci] = gg.getXmlBlasterAccess();
ConnectQos connectQos = new ConnectQos(gg, sub.loginName, passwd); // "<qos></qos>"; During login this is manipulated (callback address added)
// If we have many subs on one con, we must raise the max size of the callback queue!
CbQueueProperty cbProp =connectQos.getSessionCbQueueProperty();
// algo is maxSubPerCon*4
cbProp.setMaxEntries(maxSubPerCon*1000);//This means we have a backlog of 1000 messages per subscriber as i normal when each con only have one subscriber!
//cbProp.setMaxBytes(4000);
//cbProp.setOnOverflow(Constants.ONOVERFLOW_BLOCK);
//connectQos.setSubjectQueueProperty(cbProp);
log.fine("Login qos: " + connectQos.toXml());
ConnectReturnQos connectReturnQos = manyConnections[ci].connect(connectQos, this);
log.info("Connected maxSubPerCon=" + maxSubPerCon + " : " + connectReturnQos.toXml());
}
catch (Exception e) {
log.severe("Login failed: " + e.toString());
assertTrue("Login failed: " + e.toString(), false);
}
} // end of if ()
sub.connection = manyConnections[ci];
} else {
sub.connection = oneConnection;
}
}else {
try {
Global gg = globalUtil.getClone(glob);
sub.connection = gg.getXmlBlasterAccess();
ConnectQos connectQos = new ConnectQos(gg, sub.loginName, passwd); // "<qos></qos>"; During login this is manipulated (callback address added)
ConnectReturnQos connectReturnQos = sub.connection.connect(connectQos, this);
log.info("Connected: " + connectReturnQos.toXml());
}
catch (Exception e) {
log.severe("Login failed: " + e.toString());