if (Boolean.valueOf(config.getProperty("ws.productstart"))) {
try {
// app.setCursor(Cursor.getPredefinedCursor(Cursor.WAIT_CURSOR));
ProcessAction myProcess = (ProcessAction) app.getBean("net.virtuemart.www.possync.ProductsSyncCreate");
SyncThread p = new SyncThread(myProcess,"Products");
p.setDaemon (true);
p.start();
} catch (BeanFactoryException e) {
JOptionPane.showMessageDialog(app, "Product Sync bean error");
}
}
if (Boolean.valueOf(config.getProperty("ws.userstart"))) {
try {
//app.setCursor(Cursor.getPredefinedCursor(Cursor.WAIT_CURSOR));
ProcessAction myProcess = (ProcessAction) app.getBean("net.virtuemart.www.possync.UsersSyncCreate");
SyncThread p = new SyncThread(myProcess,"Users");
p.setDaemon (true);
p.start();
} catch (BeanFactoryException e) {
JOptionPane.showMessageDialog(app, "Users Sync bean error");
}
}