powerquotes.ejb.impl
Class TickReceiverSessionBean

powerquotes.ejb.impl.TickReceiverSessionBean

public class TickReceiverSessionBean

--- EJB Stuff ---


Constructor Summary
TickReceiverSessionBean()
           
 
Method Summary
 void ejbActivate()
           
 void ejbCreate()
          Create the Session Bean.
 void ejbPassivate()
           
 void ejbRemove()
           
 void setSessionContext(javax.ejb.SessionContext sc)
           
 void updateStockInfo(StockInfo newInfo)
          This method accepts a stock tick.
 

Constructor Detail

TickReceiverSessionBean

public TickReceiverSessionBean()
Method Detail

updateStockInfo

public void updateStockInfo(StockInfo newInfo)
This method accepts a stock tick. In the baseline it will put the update into the cache. It would also store to the database if we were doing that. In the pub-sub version this call the subscription cache to publish stock updates to attached clients. FT: must not lose any data updates. Performance: update must reach all clients within 5 seconds of generation.
Parameters:
newInfo - The new Stock information.
Returns:
none

ejbCreate

public void ejbCreate()
               throws javax.ejb.CreateException
Create the Session Bean.
Throws:
CreateException -  

setSessionContext

public void setSessionContext(javax.ejb.SessionContext sc)

ejbRemove

public void ejbRemove()

ejbActivate

public void ejbActivate()

ejbPassivate

public void ejbPassivate()