如此链接所述,似乎禁止阅读EJB的文件:
http://java.sun.com/blueprints/qanda/ejb_tier/restrications.html#files_access
Enterprise beans aren t allowed to access files primarily because files are not transactional resources. Allowing EJBs to access files or directories in the filesystem, or to use file descriptors, would compromise component distributability, and would be a security hazard.
什么是“妥协成分可分配性”?