SampleLocalHomeという名前のインタフェースを設定した場合の例を以下に示します。
package Sample; import javax.ejb.*; import java.util.*; public interface SampleLocalHome extends EJBLocalHome { /* createメソッドの定義 */ public SampleLocal create(Integer code, String name, String desc ) throws CreateException; /* findByPrimaryKeyメソッドの定義 */ public SampleLocal findByPrimaryKey(SampleBeanPrimaryKey primaryKey) throws FinderException; /* find<METHOD>メソッドの定義 */ public Enumeration findSampleBigCode(Integer bigcode) throws FinderException; /* find<METHOD>メソッドの定義 */ public Collection findSampleByName(String name) throws FinderException; }