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

All the posts and topics that contain only an error report will be moved here after the error is corrected. This is to ensure that when users view a question in ETS Viewer, the "Discuss" button will not indicate the presence of a discussion that adds no value to the question.

Moderators: Site Manager, fjwalraven

Post Reply
cjscript

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

Post 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
...

admin
Site Admin
Posts: 10388
Joined: Fri Sep 10, 2010 9:26 pm
Contact:

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

Post by admin »

You are right. This has now been fixed.

thank you for your feedback!

Post Reply

Who is online

Users browsing this forum: Bing [Bot], Google [Bot] and 2 guests