public void test1() throws Exception { EntityTest test = (EntityTest) this.getInitialContext().lookup("EntityTestBean/remote"); long[] ids = test.createBeans(); test.test1(); test.test2(); test.test3(); test.test4(ids); }