getEngineGlobal(this.global).getPluginRegistry().register(getType() + "," + getVersion(), this);
this.sqlTopic = this.get("replication.sqlTopic", "sqlTopic");
if (this.sqlTopic != null) {
SubscribeKey subKey = new SubscribeKey(this.global, this.sqlTopic);
SubscribeQos subQos = new SubscribeQos(this.global);
subQos.setPersistent(persistentSubscription);
subQos.setMultiSubscribe(false);
conn.subscribe(subKey, subQos);
}
boolean wantsDeadLetters = true;
if (wantsDeadLetters) {
SubscribeKey subKey = new SubscribeKey(this.global, Constants.OID_DEAD_LETTER);
SubscribeQos subQos = new SubscribeQos(this.global);
// we probably need this to avoid missing messages when changing runlevels
subQos.setPersistent(persistentSubscription);
subQos.setMultiSubscribe(false);
conn.subscribe(subKey, subQos);
}
this.maxResponseEntries = this.getLong("replication.sqlMaxEntries", 10L);
RequestBroker rb = getEngineGlobal(this.global).getRequestBroker();