/** * send the message to the gateway * * @param gatewayId * @param data * @return * @throws PageException */ public String sendMessage(String gatewayId, Struct data) throws PageException, GatewayException { Gateway g = getGateway(gatewayId); if (g.getState() != Gateway.RUNNING) throw new GatewayException("Gateway [" + gatewayId + "] is not running"); return g.sendMessage(data); }