Sample for a remote interface:
package training.proman.ejb;
import javax.ejb.EJBException;
import javax.ejb.EJBLocalObject;
/**
* @author earnest.thomas
*
* This is the Local Interface of Product entity bean, Product
* entity bean is used to reprecent the product in the database.
*/
public interface ProductLocal extends EJBLocalObject {
public Integer getId() throws EJBException;
public void setId(Integer id) throws EJBException;
public String getName() throws EJBException;
public void setName(String name) throws EJBException;
public float getRetailPrice() throws EJBException;
public void setRetailPrice(float retailPrice) throws EJBException;
public float getWholeSalePrice() throws EJBException;
public void setWholeSalePrice(float wholeSalePrice) throws EJBException;
public float getDiscountPrice() throws EJBException;
public void setDiscountPrice(float discountPrice) throws EJBException;
public String getDescription() throws EJBException;
public void setDescription(String description) throws EJBException;
public int getQuantity() throws EJBException;
public void setQuantity(int quantity) throws EJBException;
}