Read files in EJB is not J2EE compliant, see EJB 2.1 doc item 25.1.2
But if this is necessary only God can stop from read files.
"An enterprise bean must not use the java.io package
to attempt to access files and directories in the file system"
This EJB spec. sounds like a "condemnation" :-)
The problem is that I can't directly manage
infos I need (they are passed to me by other people
in my company and they don't allow a direct access
to "their" DB. They prepare every day a XML version
of DB infos).
Thank you fabcipriano.