WebLogic Server 6.1 Code Examples, BEA Systems, Inc.

examples.iiop.ejb.stateless.server.wls
Interface Trader

All Superinterfaces:
javax.ejb.EJBObject, java.rmi.Remote

public interface Trader
extends javax.ejb.EJBObject

The methods in this interface are the public face of TraderBean. The signatures of the methods are identical to those of the EJBean, except that these methods throw a java.rmi.RemoteException. Note that the EJBean does not implement this interface. The corresponding code-generated EJBObject, TraderBeanE, implements this interface and delegates to the bean.

Author:
Copyright (c) 1998 by WebLogic, Inc. All Rights Reserved., Copyright (c) 1999-2001 by BEA Systems, Inc. All Rights Reserved.

Method Summary
 TradeResult buy(java.lang.String stockSymbol, int shares)
          Buys shares of a stock.
 TradeResult buyRemote(java.lang.String stockSymbol, int shares)
          Buys shares of a stock remotely.
 TradeResult sell(java.lang.String stockSymbol, int shares)
          Sells shares of a stock.
 TradeResult sellRemote(java.lang.String stockSymbol, int shares)
          Sells shares of a stock remotely.
 
Methods inherited from interface javax.ejb.EJBObject
getEJBHome, getHandle, getPrimaryKey, isIdentical, remove
 

Method Detail

buy

public TradeResult buy(java.lang.String stockSymbol,
                       int shares)
                throws java.rmi.RemoteException
Buys shares of a stock.
Parameters:
stockSymbol - String Stock symbol
shares - int Number of shares to buy
Returns:
TradeResult Trade Result
Throws:
java.rmi.RemoteException - if there is a communications or systems failure

buyRemote

public TradeResult buyRemote(java.lang.String stockSymbol,
                             int shares)
                      throws java.rmi.RemoteException,
                             javax.ejb.CreateException
Buys shares of a stock remotely.
Parameters:
stockSymbol - String Stock symbol
shares - int Number of shares to buy
Returns:
TradeResult Trade Result
Throws:
java.rmi.RemoteException - if there is a communications or systems failure

sell

public TradeResult sell(java.lang.String stockSymbol,
                        int shares)
                 throws java.rmi.RemoteException
Sells shares of a stock.
Parameters:
stockSymbol - String Stock symbol
shares - int Number of shares to sell
Returns:
TradeResult Trade Result
Throws:
java.rmi.RemoteException - if there is a communications or systems failure

sellRemote

public TradeResult sellRemote(java.lang.String stockSymbol,
                              int shares)
                       throws java.rmi.RemoteException,
                              javax.ejb.CreateException
Sells shares of a stock remotely.
Parameters:
stockSymbol - String Stock symbol
shares - int Number of shares to sell
Returns:
TradeResult Trade Result
Throws:
java.rmi.RemoteException - if there is a communications or systems failure

Documentation is available at
http://e-docs.bea.com/wls/docs61

Copyright © 2001 BEA Systems, Inc. All Rights Reserved.