|Deletions are marked like this.||Additions are marked like this.|
|Line 24:||Line 24:|
Have you thought of integrating the file transaction with the JCA architecture, or enable it to work with the userTransaction.
There is a need in our application to coordinate a database write with file write.
1. Please do not use the wiki to communicate. Therefore the mailing lists exist.
1. I'm currently working on it as we have exactly the same need. I started only yesterday. I don't want to promise too much, but if you can wait a week ...
I wrote the following code to create temp.txt in the stored directory But some file with a diff name(aW5kZXgxLnR4dA%3D%3D) gets created. Does someone know how to specify the name of the output file
- Logger logger = Logger.getLogger("d:\\Raj\\test.log");
new FileResourceManager("D:\\Raj\\stored", "D:\\Raj\\working", true, loggerFacade );
FileInputStream fis = new FileInputStream("D:\\Raj\\stored\\index.txt"); byte bt1 = new byte; fis.read(bt1); fis.close(); OutputStream os = fileResourceManager.writeResource(txId, "temp.txt"); os.write(bt1); fileResourceManager.commitTransaction(txId);
Answer: You just need to disable urlEncoding: new FileResourceManager("D:\\Raj\\stored", "D:\\Raj\\working", false, loggerFacade );