Page 1 of 1

About Question com.enthuware.ets.scbcd.v5.2.186 :

Posted: Tue Jan 29, 2013 3:43 pm
by cjscript
From the code below the lookup() argument is incorrect. InitialContext requires java:/comp/env to do its lookup. EjbContext does not.

Code: Select all

...
5. Context ctx = new InitialContext();
6. MyBean bean = (MyBean) ctx.lookup("test/MyBean/local");
8. bean.add(10);
9. bean.add(20);
10. bean.add(30);
11. System.out.println(bean.getTotal()); //prints 60
...

Re: About Question com.enthuware.ets.scbcd.v5.2.186 :

Posted: Tue Jan 29, 2013 8:49 pm
by admin
You are right. This has now been fixed.

thank you for your feedback!