Hi,
NO,
you should not use I/O,
Using the java.io package from within a bean is prohibited. The EJB 1.1 Specification, section 18.1.2 (Programming Restrictions) states the following:
An enterprise bean must not use the java.io package to attempt to access files and directories in the file system.
Solution is:
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 API, to store data.
I hope this helps you..
Viswa
----------