Hi list,

I have a couple of questions regarding accessing (reading/writing) files.

1) can EJBs access files? What is the best way to do this?

2) can EJBs use Container-Managed Persistence for accessing files?

3) can those DAOs (Data Access Objects), which EJBs use for accessing the
database, also be used for accessing files, since they're not EJBs?

I need to store some data off the Database, because the data is basically
paragraphs of text. I decided to store this data in files (in XML format),
but I haven't come across any example code which does anything like this.
I read somewhere that EJBs cannot access files directly. But then in some
other places, I got the impression that you *can* do this.

Has anyone done anything like this before? Could you tell me how I could go
about doing this? Thanks in advance!

-Erwin

===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets

Reply via email to