FileDocCategorySizeDatePackage
PaymentProcessingBean.javaAPI DocExample746Sat Nov 09 18:00:50 GMT 2002com.oreilly.javaxp.jboss.server

PaymentProcessingBean.java

package com.oreilly.javaxp.jboss.server;

import javax.ejb.SessionBean;

/**
 * @ejb:bean type="Stateless"
 *           name="PaymentProcessingBean"
 *           jndi-name="ejb/PaymentProcessingBean"
 *
 * @ejb:transaction type="Required"
 * @ejb:transaction-type = "Container"
 *
 * @author Brian M. Coyner
 * @version $Id: PaymentProcessingBean.java,v 1.1 2002/11/10 01:00:51 jepc Exp $
 */
public abstract class PaymentProcessingBean implements SessionBean {

    /**
     * @ejb:interface-method view-type="remote"
     */
    public boolean makePayment(String accountNumber, double payment) {
        // perform logic to look up customer and make payment against their
        // account
        return true;
    }
}