Coding the remote interface

The remote interface for a bean extends the javax.ejb.SessionBean interface. The remote interface defines the actual business methods a client program may call on an individual bean instance:
package casino;

     public interface RouletteWheel extends javax.ejb.EJBObject {

       // Place a bet on either "red" or "black" of the given amount,
       // the return value indicates to the caller whether the bet was
       // successful or not.
       public String bet(String bet,int amount) throws javax.ejb.EJBException;

       // Check the current status of the wheel.
       public String getCurrentStatus() throws javax.ejb.EJBException;

       // Collect winnings from the wheel (if any!)
       public int collectWinnings() throws javax.ejb.EJBException;

     }