Hi
Introduce one more layer between your EJB and DB or
file. Your EJB will call the write methods of that layer and those methods will
be responsible for writing it to the file. In Short
EJB(
call write methods on the new Layer) ------->
New Layer ( Contains methods for openning the streams for writing) --------->
Final file.
Cheers,
Sourabh
-----Original Message-----
From: Dinesh Sharma [mailto:[EMAIL PROTECTED]]
Sent: Thursday, September 27, 2001 7:46 PM
To: [EMAIL PROTECTED]
Subject: EJB File I/O questionHello all,
Am currently working on an application, which requires writing to a file, everytime some data is retrieved from the DB. It is a daily process, and the first transaction is a write, and then all the subsequent trasactions are appended to the file. I learnt that EJB specification 1.1 forbids "developers" from using the java.io.* package for doing file I/O. Is anyone aware of any alternative method/pattern or a stable workaround to around this? Thank you for your time in advance.I could compile a list of all the messages I receive and send it back to the list.
Best,
Dinesh
