File systems can be transactional, via JCA

Originally Posted by
croco
Storing the images in the database makes sense because they are part of the application data. This enables updating the application data (the images) in a transactional maner, which you can not do elegantly when part of the data is stored in the file system.
I believe a number of vendors have produced JCA adapters for file systems (or you could write your own!). If you can find one that supports XA (global) transactions, you could access the file system in the same transaction as your database along with any other transactional resources used by your application (JMS queues, etc.). Could I use "transaction" any more times in a sentence?
HTH.
Stop Press: found this article with the source code for such an adapter (no idea if it works though): http://java.sys-con.com/read/37798.htm
Last edited by Andrew Swan; Jul 11th, 2006 at 01:31 AM.
Andrew Swan
"Now is the EJB of our discontent made glorious Spring"