com.ibm.websphere.samples.asynchbeans.wstrader.tickstream.ejb
Class TickerStreamBootstrapBean

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

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

This is a startup bean that starts and stops the Ticker Streamer application when the server starts.

See Also:
Serialized Form

Constructor Summary
TickerStreamBootstrapBean()
           
 
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 Ticker Streamer Application when the application starts.
 void stop()
          This stops the Ticker Streamer Application when the application stops
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TickerStreamBootstrapBean

public TickerStreamBootstrapBean()
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 Ticker Streamer Application when the application starts.


stop

public void stop()
This stops the Ticker Streamer Application when the application stops