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
Online
-
- Site Admin
- Posts: 10061
- 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.
If you like our products and services, please help us by posting your review here.
Who is online
Users browsing this forum: No registered users and 74 guests