/* JSF interface method to submit a trade to the RA/EIS (in trade.xhtml) */ public void submitTrade() { infoBox = "\n -->" + order.toString() + infoBox; /* Use the Common Client Interface */ try { response = connection.submitOrder(order); infoBox = "\n <--" + response.toString() + infoBox; } catch (TradeProcessingException ex) { infoBox = "\n <-- ERROR " + ex.getMessage() + infoBox; } }
/* JSF navigation method (from trade.xhtml) */ public String disconnect() { infoBox = ""; try { connection.close(); connection = null; } catch (ResourceException e) { log.info(e.getMessage()); } return "index"; }