This week's book giveaway is in the OO, Patterns, UML and Refactoring forum.
We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line!
See this thread for details.
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 | Flagged Topics | Hot Topics | Zero Replies
Register / Login

JavaRanch » Java Forums » Java » EJB and other Java EE Technologies
Bookmark "FileReader is allowed in EJB?" Watch "FileReader is allowed in EJB?" New topic

FileReader is allowed in EJB?

Edward Chen
Ranch Hand

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

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

SCJP, blog
Edward Chen
Ranch Hand

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

Joined: Aug 27, 2003
Posts: 1066
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’ve looked at a lot of different solutions, and in my humble opinion Aspose is the way to go. Here’s the link:
subject: FileReader is allowed in EJB?
It's not a secret anymore!