|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.ibm.websphere.samples.asynchbeans.wstrader.pricegen.ejb.PriceGenControlBean
public class PriceGenControlBean
Contains all logic for starting and stopping a Price Generator. For each price publisher configured in the RawTickerConfig entity bean, we create alarms to publish each tick.
Field Summary | |
---|---|
protected javax.ejb.SessionContext |
mySessionCtx
|
Constructor Summary | |
---|---|
PriceGenControlBean()
|
Method Summary | |
---|---|
void |
ejbActivate()
|
void |
ejbCreate()
ejbCreate |
void |
ejbPassivate()
|
void |
ejbRemove()
|
javax.ejb.SessionContext |
getSessionContext()
getSessionContext |
void |
setSessionContext(javax.ejb.SessionContext arg0)
|
boolean |
startPublishers()
This method starts the price generator alarms when the application starts. |
boolean |
stopPublishers()
Destroy the price publishers and all associated resources. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected javax.ejb.SessionContext mySessionCtx
Constructor Detail |
---|
public PriceGenControlBean()
Method Detail |
---|
public boolean startPublishers() throws java.lang.Exception
java.lang.Exception
public boolean stopPublishers() throws java.lang.Exception
java.lang.Exception
public void ejbActivate() throws javax.ejb.EJBException, java.rmi.RemoteException
ejbActivate
in interface javax.ejb.SessionBean
javax.ejb.EJBException
java.rmi.RemoteException
SessionBean.ejbActivate()
public void ejbPassivate() throws javax.ejb.EJBException, java.rmi.RemoteException
ejbPassivate
in interface javax.ejb.SessionBean
javax.ejb.EJBException
java.rmi.RemoteException
SessionBean.ejbPassivate()
public void ejbRemove() throws javax.ejb.EJBException, java.rmi.RemoteException
ejbRemove
in interface javax.ejb.SessionBean
javax.ejb.EJBException
java.rmi.RemoteException
SessionBean.ejbRemove()
public void ejbCreate() throws javax.ejb.CreateException
javax.ejb.CreateException
public void setSessionContext(javax.ejb.SessionContext arg0) throws javax.ejb.EJBException, java.rmi.RemoteException
setSessionContext
in interface javax.ejb.SessionBean
javax.ejb.EJBException
java.rmi.RemoteException
SessionBean.setSessionContext(SessionContext)
public javax.ejb.SessionContext getSessionContext()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |