About Question com.enthuware.ets.scbcd.v5.2.263 :

Moderator: admin

Post Reply
ETS User

About Question com.enthuware.ets.scbcd.v5.2.263 :

Post by ETS User »

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.

admin
Site Admin
Posts: 10385
Joined: Fri Sep 10, 2010 9:26 pm
Contact:

Re: About Question com.enthuware.ets.scbcd.v5.2.263 :

Post by admin »

It is forbidden by the specification. Please see section 21.1.2:
• 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.
HTH,
Paul.

Post Reply

Who is online

Users browsing this forum: No registered users and 10 guests