The Enterprise JavaBeans 3.0 core specification, Section 21.1.2, states:

An enterprise bean must not use the java.io package to attempt to access files and directories in the file system.

The file system APIs are not well-suited for business components to access data. Business components should use a resource manager API, such as JDBC, to store data.

  • JSR-220 Enterprise JavaBeans 3.0 Final Release (ejbcore), Section 21.1.2 Programming Restrictions