FileDocCategorySizeDatePackage
PaymentProcessingBean.javaAPI DocExample793Wed Nov 20 17:21:42 GMT 2002com.oreilly.javaxp.xdoclet.ejbdoclet.ejb

PaymentProcessingBean.java

package com.oreilly.javaxp.xdoclet.ejbdoclet.ejb;

import javax.ejb.SessionBean;

/**
 * @ejb.bean
 *     type="Stateless"
 *     name="PaymentProcessingBean"
 *     jndi-name="ejb/PaymentProcessingBean"
 *     view-type="remote"
 * @ejb.transaction
 *     type="Required"
 * @ejb.transaction-type
 *     type="Container"
 *
 * @author Brian M. Coyner
 * @version $Id: PaymentProcessingBean.java,v 1.6 2002/11/20 00:09:16 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;
    }
}