Package org.apache.geronimo.samples.daytrader.direct

Examples of org.apache.geronimo.samples.daytrader.direct.TradeDirect


                Log.error("TradeAction:TradeAction() Creation of Trade JPA failed\n" + e);
                e.printStackTrace();
            }
        } else if (TradeConfig.runTimeMode == TradeConfig.DIRECT) {
            try {
                trade = new TradeDirect();
            }
            catch (Exception e) {
                Log.error("TradeAction:TradeAction() Creation of Trade Direct failed\n" + e);
            }
        } else if (TradeConfig.runTimeMode == TradeConfig.SESSION) {
View Full Code Here


  public void setSessionContext(SessionContext sc) {
    this.context = sc;
  }

  public MarketSummaryDataBean getMarketSummary() throws Exception, RemoteException {
    return (new TradeDirect(true)).getMarketSummary();
  }
View Full Code Here

    return (new TradeDirect(true)).getMarketSummary();
  }


  public OrderDataBean buy(String userID, String symbol, double quantity, int orderProcessingMode) throws Exception, RemoteException {
    return (new TradeDirect(true)).buy(userID, symbol, quantity, orderProcessingMode);
  }
View Full Code Here

  public OrderDataBean buy(String userID, String symbol, double quantity, int orderProcessingMode) throws Exception, RemoteException {
    return (new TradeDirect(true)).buy(userID, symbol, quantity, orderProcessingMode);
  }

  public OrderDataBean sell(String userID, Integer holdingID, int orderProcessingMode) throws Exception, RemoteException {
    return (new TradeDirect(true)).sell(userID, holdingID, orderProcessingMode);
  }
View Full Code Here

  public OrderDataBean sell(String userID, Integer holdingID, int orderProcessingMode) throws Exception, RemoteException {
    return (new TradeDirect(true)).sell(userID, holdingID, orderProcessingMode);
  }

  public void queueOrder(Integer orderID, boolean twoPhase) throws Exception, RemoteException {
    (new TradeDirect(true)).queueOrder(orderID, twoPhase);
  }
View Full Code Here

  public void queueOrder(Integer orderID, boolean twoPhase) throws Exception, RemoteException {
    (new TradeDirect(true)).queueOrder(orderID, twoPhase);
  }

  public OrderDataBean completeOrder(Integer orderID, boolean twoPhase) throws Exception, RemoteException {
    return (new TradeDirect(true)).completeOrder(orderID, twoPhase);
  }
View Full Code Here

  public OrderDataBean completeOrder(Integer orderID, boolean twoPhase) throws Exception, RemoteException {
    return (new TradeDirect(true)).completeOrder(orderID, twoPhase);
  }

  public void cancelOrder(Integer orderID, boolean twoPhase) throws Exception, RemoteException {
    (new TradeDirect(true)).cancelOrder(orderID, twoPhase);
  }
View Full Code Here

  public void cancelOrder(Integer orderID, boolean twoPhase) throws Exception, RemoteException {
    (new TradeDirect(true)).cancelOrder(orderID, twoPhase);
  }

  public void orderCompleted(String userID, Integer orderID) throws Exception, RemoteException {
    (new TradeDirect(true)).orderCompleted(userID, orderID);
  }
View Full Code Here

  public void orderCompleted(String userID, Integer orderID) throws Exception, RemoteException {
    (new TradeDirect(true)).orderCompleted(userID, orderID);
  }

  public Collection getOrders(String userID) throws Exception, RemoteException {
    return (new TradeDirect(true)).getOrders(userID);
  }
View Full Code Here

  public Collection getOrders(String userID) throws Exception, RemoteException {
    return (new TradeDirect(true)).getOrders(userID);
  }

  public Collection getClosedOrders(String userID) throws Exception, RemoteException {
    return (new TradeDirect(true)).getClosedOrders(userID);
  }
View Full Code Here

TOP

Related Classes of org.apache.geronimo.samples.daytrader.direct.TradeDirect

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.