File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes EJB and other Java EE Technologies and the fly likes FileReader is allowed in EJB? Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Java » EJB and other Java EE Technologies
Reply Bookmark "FileReader is allowed in EJB?" Watch "FileReader is allowed in EJB?" New topic
Author

FileReader is allowed in EJB?

Edward Chen
Ranch Hand

Joined: Dec 23, 2003
Posts: 758
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
Kishore Dandu
Ranch Hand

Joined: Jul 10, 2001
Posts: 1934
what do you mean by portable? Can you be more specific.


Kishore
SCJP, blog
Edward Chen
Ranch Hand

Joined: Dec 23, 2003
Posts: 758
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
Vishwa Kumba
Ranch Hand

Joined: Aug 27, 2003
Posts: 1064
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:
 
I agree. Here's the link: http://zeroturnaround.com/jrebel
 
subject: FileReader is allowed in EJB?
 
Similar Threads
Saving Data
Current Working Directory?
Copy file
WA #1.....word association
Comparing two huge files