Why EJBs are not allowed to make use of java.io package?
I am able to write EJB which read file from filesystem without any problem.
About Question com.enthuware.ets.scbcd.v5.2.263 :
Moderator: admin
-
- Site Admin
- Posts: 10385
- Joined: Fri Sep 10, 2010 9:26 pm
- Contact:
Re: About Question com.enthuware.ets.scbcd.v5.2.263 :
It is forbidden by the specification. Please see section 21.1.2:
Paul.
HTH,• 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.
Paul.
Who is online
Users browsing this forum: No registered users and 10 guests