Skip to content

Commit

Permalink
Returning default FileOperations if ResourceFactory impl does not
Browse files Browse the repository at this point in the history
support transactions
  • Loading branch information
gastaldi committed Oct 2, 2013
1 parent 5587044 commit 9548614
Showing 1 changed file with 9 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -435,7 +435,15 @@ public ResourceMonitor monitor(ResourceFilter filter)

protected FileResourceOperations getFileOperations()
{
ResourceTransaction transaction = resourceFactory.getTransaction();
ResourceTransaction transaction;
try
{
transaction = resourceFactory.getTransaction();
}
catch (UnsupportedOperationException uoe)
{
return DefaultFileOperations.INSTANCE;
}
if (transaction.isStarted())
{
// TODO: how will other resource types participate in a transaction? XA?
Expand Down

0 comments on commit 9548614

Please sign in to comment.