How to manage transaction for database and file system in Java EE environment?
I store file’s attributes (size, update time…) in database. So the problem is how to manage transaction for database and file. In a Java EE environment, JTA is just able to manage database transaction. In case, updating database is successful but file operation fails, should I write file-rollback method for this? Moreover, file operation in EJB container violates EJB spec. What’s your opinion? Access to external resources such as a file system should ideally go through a JCA connector . Though there are several posts around discussing this, I never found a ready-to-use JCA connector for