Hi, All, it says : FileWriter is legal but not portable in EJB, what about FileReader is legal? is portable? Why FileWriter is not portable? just create a file and save some data or log in the local directory, not a big deal. Thanks. Edward
Joined: Jul 10, 2001
what do you mean by portable? Can you be more specific.
In my understanding, "portable" means, the EJB jar file can move easily from one type of server to another type ,from one database to another one, from one OS to another OS, with the minimum of modification of coding. Am I right? Thanks Edward
Joined: Aug 27, 2003
Edward, Your definition of portability is right. IO is prohibited by the EJB specs. I think a file or a directory structure that is present in one EJB environment may not be present in the other EJB env, hence the portability issue. :roll: