清单8显示了用于测试调用传递和返回值形式的三种方法的代码。
Listing 8 shows the code for the three methods used to test the passed-and-returned value form of the calls.
从调用三个EJB方法返回的字符串也应该被显示出来。
The Strings returned from invoking the three EJB methods should be printed out as well.
这就是这里发生的情况 — 如果您还记得的话,缺省行为是显示由元素的 toString() 方法返回的字符串,它正好是绝对文件名。
This is what has happened here — and if you remember, the default behavior is to display the string that is returned by the element's toString() method, which happens to be the absolute file name.
应用推荐