appServer.setRemoteMessageTask(server); // Should have done all the apps in this env! } catch (RemoteException ex) { ex.printStackTrace();
appServer.setRemoteMessageTask(server); // Should have done all the apps in this env! } catch (RemoteException ex) { ex.printStackTrace();
/** * Start this service. * Override this to do all the startup. * @return true if successful. */ public Application startupThisApp(Environment env, Map<String, Object> props) { Application application = new MessageInfoApplication(env, props, null); if (env.getDefaultApplication() != null) if (env.getDefaultApplication() != application) { RemoteTask server = (RemoteTask)application.getRemoteTask(null); RemoteTask appServer = (RemoteTask)env.getDefaultApplication().getRemoteTask(null, null, false); if ((server != null) && (appServer != null)) { try { // Tell the remote session who my main session is // so it can know where not to send server record // messages (to eliminate echos in the client). appServer.setRemoteMessageTask(server); // Should have done all the apps in this env! } catch (RemoteException ex) { ex.printStackTrace(); } } } return application; } }
((RemoteTask)m_remoteObject).setRemoteMessageTask(remoteTask);