有的方法不能放在remote或local接口中啊,比如,统计所有记录条数或者取得所有帐户的余额总数。
解决方案 »
- File f = new File(filePath) f.exists() 为false 求大神
- “|=”是什么运算符号
- 请教 ::Structs
- 如何将jsp页面获得的系统时间存到数据库中?求解答!!
- 在weblogic7里面使用smartupload组件上传文件的问题,java.lang.OutOfMemoryError
- 新手求解答oracle11相关问题,急!!!
- 如何取得用户的在线时间及他所正在访问的页面
- 有关java.lang.reflect.Field的问题
- ★★★ j2ee最精典多媒体教程 快来下载!384M
- Weblogic 与 JSP 环境的问题
- 大家好!我是新来的!麻烦各位高手帮我解答一下好吗?谢谢了.
- 我想请教一下
try{
AccountHome accountHome=(AccountHome)context.getEJBHome();
Collection accounts=accountHome.findAll();
Iterator it=accounts.iterator();
while(it.hasNext()){
Account account=(Account)it.next();
account.deposit(amount);
}
}
catch(Exception e){
System.err.println(e.toString());
}}
该Home方法对银行的每个帐户都加上amount元的存款。哎!没有哪个银行有这么好...^_^