Discussions

General J2EE: How to read and write fixed-length record ASCII files under 9iAS

  1. I have a question about reading (and writing) ASCII files with fixed-length records in an application that will run under 9iAS. (FWIW, the application uses no EJBs.)

    Since the J2EE spec forbids standard file i/o, it would seem that using RandomAccessFile is not an option.

    Purchasing a JDBC driver for text files is not an option for our project, either.

    Does 9iAS provide any other options, besides ignoring the J2EE spec?

    TIA,
    Al Margheim
  2. the *j2ee* spec does not forbid i/o... the ejb spec does.

    if you *want* to use ejbs, you still can... just move the i/o part out of the ejb tier. for instance, use strings in the ejb tier, and let the ejb client deal with the reading and writing of those strings.
  3. But in some application, ejb tier can use java.io.*. Jboss , Weblogic
  4. But in some application, ejb tier can use java.io.*. Jboss , Weblogic


    the ejb spec clearly states that you can't use io in your ejbs. afaik, no application server literally *prevents* you from using the java.io package... but that doesn't make it right.