/** * Block until a message is received. * Hangs on the remote receive message call. * @return The next message. */ public Message receiveMessage() { Message message = null; try { message = m_receiveQueue.receiveRemoteMessage(); // Hang until a message comes through } catch (RemoteException ex) { ex.printStackTrace(); return null; // Remote exception = I'm done } if (message != null) ((BaseMessage)message).setProcessedByServer(true); // Don't send the message back down. return message; } }
/** * Block until a message is received. * Hangs on the remote receive message call. * @return The next message. */ public Message receiveMessage() { Message message = null; try { message = m_receiveQueue.receiveRemoteMessage(); // Hang until a message comes through } catch (RemoteException ex) { ex.printStackTrace(); return null; // Remote exception = I'm done! } if (message instanceof BaseMessage) ((BaseMessage)message).setProcessedByServer(true); // Don't send the message back down. return message; } /**
message.setProcessedByServer(true); // Don't send this message down to the server. message.setProcessedByServer(true); // Don't send this message down to the server. BaseDatabase database = this.getTable().getCurrentTable().getDatabase(); if (DBConstants.FALSE.equals(database.getProperty(DBParams.MESSAGES_TO_REMOTE))) message.setProcessedByServer(true); // Don't send this message down to the server. if (this.getTask() != null) if (this.getTask().getApplication() instanceof Application) // Always
message.setProcessedByServer(true); // Don't send this message down to the server. message.setProcessedByServer(true); // Don't send this message down to the server. BaseDatabase database = this.getTable().getCurrentTable().getDatabase(); if (DBConstants.FALSE.equals(database.getProperty(DBParams.MESSAGES_TO_REMOTE))) message.setProcessedByServer(true); // Don't send this message down to the server. if (this.getTask() != null) if (this.getTask().getApplication() instanceof Application) // Always
message.setProcessedByServer(true); // Don't send this message down to the server. message.setProcessedByServer(true); // Don't send this message down to the server. BaseDatabase database = this.getTable().getCurrentTable().getDatabase(); if (DBConstants.FALSE.equals(database.getProperty(DBParams.MESSAGES_TO_REMOTE))) message.setProcessedByServer(true); // Don't send this message down to the server. if (this.getTask() != null) if (this.getTask().getApplication() instanceof Application) // Always