com.ibm.websphere.samples.asynchbeans.wstrader.pricegen.ejb
Class PriceGenBootstrapBean

java.lang.Object
  extended by com.ibm.websphere.samples.asynchbeans.wstrader.pricegen.ejb.PriceGenBootstrapBean
All Implemented Interfaces:
java.io.Serializable, javax.ejb.EnterpriseBean, javax.ejb.SessionBean

public class PriceGenBootstrapBean
extends java.lang.Object
implements javax.ejb.SessionBean

This is a startup bean that kicks off the price publishers when the enterprise application starts.

See Also:
Serialized Form

Constructor Summary
PriceGenBootstrapBean()
           
 
Method Summary
 void ejbActivate()
          ejbActivate
 void ejbCreate()
          ejbCreate
 void ejbPassivate()
           
 void ejbRemove()
          ejbRemove
 javax.ejb.SessionContext getSessionContext()
          getSessionContext
 void setSessionContext(javax.ejb.SessionContext ctx)
          setSessionContext
 boolean start()
          Start the Price Publishers when the application starts.
 void stop()
          This stops the publishers when the application stops.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PriceGenBootstrapBean

public PriceGenBootstrapBean()
Method Detail

getSessionContext

public javax.ejb.SessionContext getSessionContext()
getSessionContext


setSessionContext

public void setSessionContext(javax.ejb.SessionContext ctx)
setSessionContext

Specified by:
setSessionContext in interface javax.ejb.SessionBean

ejbActivate

public void ejbActivate()
ejbActivate

Specified by:
ejbActivate in interface javax.ejb.SessionBean

ejbCreate

public void ejbCreate()
               throws javax.ejb.CreateException
ejbCreate

Throws:
javax.ejb.CreateException

ejbPassivate

public void ejbPassivate()
Specified by:
ejbPassivate in interface javax.ejb.SessionBean

ejbRemove

public void ejbRemove()
ejbRemove

Specified by:
ejbRemove in interface javax.ejb.SessionBean

start

public boolean start()
Start the Price Publishers when the application starts.


stop

public void stop()
This stops the publishers when the application stops.