|
WebLogic Server 7.0 Code Examples, BEA Systems, Inc. | |||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||
java.lang.Object | +--examples.webservices.complex.statelessSession.TraderBean
TraderBean is a stateless Session Bean. This bean illustrates:
| Constructor Summary | |
TraderBean()
|
|
| Method Summary | |
TradeResult |
buy(java.lang.String stockSymbol,
int shares)
Buys shares of a stock. |
void |
ejbActivate()
This method is required by the EJB Specification, but is not used by this example. |
void |
ejbCreate()
This method corresponds to the create method in the home interface "TraderHome.java". |
void |
ejbPassivate()
This method is required by the EJB Specification, but is not used by this example. |
void |
ejbRemove()
This method is required by the EJB Specification, but is not used by this example. |
TradeResult |
sell(java.lang.String stockSymbol,
int shares)
Sells shares of a stock. |
void |
setSessionContext(javax.ejb.SessionContext ctx)
Sets the session context. |
| Methods inherited from class java.lang.Object |
|
| Constructor Detail |
public TraderBean()
| Method Detail |
public TradeResult buy(java.lang.String stockSymbol,
int shares)
stockSymbol - String Stock symbolshares - int Number of shares to buypublic void ejbActivate()
ejbActivate in interface javax.ejb.SessionBean
public void ejbCreate()
throws javax.ejb.CreateException
TraderHome.create(), the container allocates an instance of
the EJBean and calls ejbCreate().javax.ejb.CreateException - if there is
a communications or systems failureTraderpublic void ejbPassivate()
ejbPassivate in interface javax.ejb.SessionBeanpublic void ejbRemove()
ejbRemove in interface javax.ejb.SessionBean
public TradeResult sell(java.lang.String stockSymbol,
int shares)
stockSymbol - String Stock symbolshares - int Number of shares to buypublic void setSessionContext(javax.ejb.SessionContext ctx)
setSessionContext in interface javax.ejb.SessionBeanctx - SessionContext Context for session
|
Documentation is available at http://e-docs.bea.com/wls/docs70 |
|||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||