1 package example.entity.home; 2 3 import javax.ejb.*; 4 5 8 public class HomeBean extends com.caucho.ejb.AbstractEntityBean { 9 12 public String ejbHomeHello() 13 { 14 return "hello, world"; 15 } 16 17 20 public int ejbHomeAdd(int a, int b) 21 { 22 return a + b; 23 } 24 25 28 public String ejbFindByPrimaryKey(String key) 29 throws FinderException 30 { 31 throw new FinderException("not supported"); 32 } 33 } 34 | Popular Tags |