|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Method Summary | |
void |
cancelOrderOnePhase(java.lang.Integer orderID)
Cancel the Order identefied by orderID In short, this method is deployed as TXN REQUIRES NEW to avoid a 2-phase commit transaction across Entity and MDB access The boolean twoPhase specifies to the server implementation whether or not the method is to participate in a global transaction |
void |
cancelOrderOnePhaseDirect(java.lang.Integer orderID)
Cancel the Order identefied by orderID using TradeDirect to complete the Order In short, this method is deployed as TXN REQUIRES NEW to avoid a 2-phase commit transaction across DB and MDB access The EJB method is used only to start a new transaction so the direct runtime mode for the cancleOrder will run in a 1-phase commit The boolean twoPhase specifies to the server implementation whether or not the method is to participate in a global transaction |
OrderDataBean |
completeOrderOnePhase(java.lang.Integer orderID)
Complete the Order identified by orderID in a One Phase commit In short, this method is deployed as TXN REQUIRES NEW to avoid a 2-phase commit transaction across Entity and MDB access Orders are submitted through JMS to a Trading agent and completed asynchronously. |
OrderDataBean |
completeOrderOnePhaseDirect(java.lang.Integer orderID)
Complete the Order identified by orderID in a One Phase commit using TradeDirect to complete the Order In short, this method is deployed as TXN REQUIRES NEW to avoid a 2-phase commit transaction across DB and MDB access The EJB method is used only to start a new transaction so the direct runtime mode for the completeOrder will run in a 1-phase commit Orders are submitted through JMS to a Trading agent and completed asynchronously. |
double |
investmentReturn(double investment,
double NetValue)
provides a simple session method with no database access to test performance of a simple path through a stateless session |
QuoteDataBean |
pingTwoPhase(java.lang.String symbol)
This method provides a ping test for a 2-phase commit operation |
void |
publishQuotePriceChange(QuoteDataBean quoteData,
java.math.BigDecimal oldPrice,
java.math.BigDecimal changeFactor,
double sharesTraded)
Publish to the QuoteChange Message topic when a stock price and volume are updated This method is deployed as TXN REQUIRES NEW to avoid a 2-phase commit transaction across the DB update and MDB access (i.e. |
void |
queueOrderOnePhase(java.lang.Integer orderID)
Queue the Order identified by orderID to be processed in a One Phase commit In short, this method is deployed as TXN REQUIRES NEW to avoid a 2-phase commit transaction across Entity and MDB access Orders are submitted through JMS to a Trading Broker and completed asynchronously. |
Methods inherited from interface javax.ejb.EJBObject |
getEJBHome, getHandle, getPrimaryKey, isIdentical, remove |
Methods inherited from interface org.apache.geronimo.samples.daytrader.TradeServices |
buy, cancelOrder, completeOrder, createQuote, getAccountData, getAccountProfileData, getAllQuotes, getClosedOrders, getHolding, getHoldings, getMarketSummary, getOrders, getQuote, login, logout, orderCompleted, queueOrder, register, resetTrade, sell, updateAccountProfile, updateQuotePriceVolume |
Method Detail |
public void queueOrderOnePhase(java.lang.Integer orderID) throws java.rmi.RemoteException
orderID
- the Order being queued for processing
java.rmi.RemoteException
public OrderDataBean completeOrderOnePhase(java.lang.Integer orderID) throws java.rmi.RemoteException
orderID
- the Order to complete
java.rmi.RemoteException
public OrderDataBean completeOrderOnePhaseDirect(java.lang.Integer orderID) throws java.rmi.RemoteException
orderID
- the Order to complete
java.rmi.RemoteException
public void cancelOrderOnePhase(java.lang.Integer orderID) throws java.rmi.RemoteException
orderID
- the Order to complete
java.rmi.RemoteException
public void cancelOrderOnePhaseDirect(java.lang.Integer orderID) throws java.rmi.RemoteException
orderID
- the Order to complete
java.rmi.RemoteException
public void publishQuotePriceChange(QuoteDataBean quoteData, java.math.BigDecimal oldPrice, java.math.BigDecimal changeFactor, double sharesTraded) throws java.rmi.RemoteException
quoteData
- - the updated QuoteoldPrice
- - the price of the Quote before the updatesharesTraded
- - the quantity of sharesTraded
java.rmi.RemoteException
public double investmentReturn(double investment, double NetValue) throws java.rmi.RemoteException
investment
- amountNetValue
- current value
java.rmi.RemoteException
public QuoteDataBean pingTwoPhase(java.lang.String symbol) throws java.rmi.RemoteException
symbol
- to lookup
java.rmi.RemoteException
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |