Hi,
I have problem with notifications. I want to notify all other running clients when any client change data.
how it works .... Client change data and send it to server, next server generate notification using
SERVICES.getService(IClientNotificationService.class).putNotification(notification, new AllUserFilter(120000L));
on client page (AbstractPageWithTable<Table>) i have this code to register and handle notification
protected void execInitPage() throws ProcessingException {
super.execInitPage();
SERVICES.getService(IClientNotificationConsumerService.class).addGlobalClientNotificationConsumerListener(new IClientNotificationConsumerListener() {
@Override
public void handleEvent(ClientNotificationConsumerEvent e, boolean sync) {
e.consume();
reloadPage();
}
}
}
handleEvent is called after server putNotification but reloadPage cause exception "IllegalStateException" "queueing swt runnable from outside scout thread". Does anybody know where is the problem and how to fix it ??
thanks for answers ..
K.