hi all.
Our web-app is set up to use a "master" engine inside a main (index.html) page. This engine is being referenced throughout the application by its children windows, using the "seekEngine".
The problem is, when we open a lot of this children windows and perform a lot of item-subscription activities, it gives the alert error of "ER Bind unable to find engine".
Sorry if maybe what I described above is not much of a helper in diagnosing this problem.
Any suggestions/thoughts on this?
I'm using the Moderato 3.4.8_build_1398 version, and below are some snippets of mine.
Thanks in advance.
//***************************************
//Ex: inside main (master) page
...
...
var lsPage = new PushPage();
lsPage.context.setDomain("my.domain.com");
lsPage.onEngineCreation = startEngine;
lsPage.bind();
lsPage.createEngine("MyEngine", "LS/","SHARE_SESSION");
function startEngine(eng) {
eng.policy.setMaxBandwidth(30);
eng.policy.setIdleTimeout(30000);
eng.policy.setPollingInterval(1000);
eng.connection.setLSHost("win.my.domain.com");
eng.connection.setLSPort(8080);
eng.connection.setAdapterName("MYADAPTER");
eng.changeStatus("STREAMING");
}
...
...
//***************************************
//Ex: inside children windows
...
...
var lsPage = new PushPage();
var txtDomain = "my.domain.com";
var debugAlerts = true;
var remoteAlerts = false;
var pushHost =null;
if (location.href.indexOf(txtDomain) > -1) {
lsPage.context.setDomain(txtDomain);
debugAlerts = false;
remoteAlerts = true;
}
else {
lsPage.context.setDomain(txtDomain);
}
lsPage.context.setDebugAlertsOnClientError(debugAlerts);
lsPage.context.setRemoteAlertsOnClientError(remoteAlerts);
lsPage.bind();
lsPage.seekEngine("MyEngine", self);
...
...