Discussions

EJB programming & troubleshooting: Need to write to file from J2EE server (help!)

  1. Need to write to file from J2EE server (help!) (5 messages)

    I have searched alot on forums on the topic but i have not found a solution to this problem. Is there a finished component or product that i can use to be able to write to file from an application server. I have seen news on the serverside about some component that enabled file writing but i could not find it afterwards. Thank you very much for any help since this is a big problem in our project.
  2. Can you go a little further and provide, what type of application is it and what you really want to write! I will be happy to help cheers, http://javaicillusion.blogspot.com/
  3. Can you go a little further and provide, what type of application is it and what you really want to write!

    I will be happy to help cheers,
    http://javaicillusion.blogspot.com/
    It is an application that generates reports from a datawarehouse. The reports are supposed to be stored on disk in the form of CSV format and they are pretty huge. The reason for storing them is for later retrieval.
  4. You don't know the java.io library then? There are a whole bunch of classes that let you write out to a file, like FileOutputStream. This works just as well in an appserver.
  5. Yes i know them but according to the j2ee spec as i have understood it is not allowed to write to file. You need some kind of JCA implementation to do this.
  6. I found a project called "File Resource Adapter" which had a JCA compliant implementation and also a company called netmanaged had a product calld librados. The librados came with a JCA Adaptor with flat file support. Is this needed if i run in a J2EE environment or is it ok to use normal java.io ?