This week's book giveaway is in the OCAJP 8 forum.
We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line!
See this thread for details.
The moose likes EJB and other Java EE Technologies and the fly likes Files from EJB Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of OCA Java SE 8 Programmer I Study Guide this week in the OCAJP 8 forum!
JavaRanch » Java Forums » Java » EJB and other Java EE Technologies
Bookmark "Files from EJB" Watch "Files from EJB" New topic

Files from EJB

Angelino Dolce

Joined: Jul 26, 2005
Posts: 24
Hi all!
One of the restrictions of EJB is:
An enterprise bean must not use the package to attempt to access files and directories in the file system.
But i've the necessity of writing temporarily a file on disc,reread it and then cancel. What is a recommended solution for this problem?
Thank You very much!
Paul Sturrock

Joined: Apr 14, 2004
Posts: 10336

Have a look at the Java Connector Architecture (JCA). This is the mechanism used to get at resources like the File System from an EJB.

JavaRanch FAQ HowToAskQuestionsOnJavaRanch
jay akhawri
Ranch Hand

Joined: Nov 28, 2004
Posts: 47
hi angelino and paul,

i am pretty much interested in doing such stuff....can i learn about some basic such applications you might have created...or a link for lerning this.
I agree. Here's the link:
subject: Files from EJB
It's not a secret anymore!