public sailorsyHome getHome() { return sailorsyHomeObject; } //Main method
public static void main(String[] args) throws Exception{ sailorsyTestClient1 client = new sailorsyTestClient1(); sailorsyRemote sr=client.getHome() .create() ; String s=sr.showname() ; System.out.print(s); // Use the getHome() method of the client object to call Home interface // methods that will return a Remote interface reference. Then // use that Remote interface reference to access the EJB. } } 以上的EJB在win2000+jbuilder5/jbuilder6+BAS4.5经过测试。