commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Joerg Heinicke <>
Subject [transaction] allow (easier) subclassing of FileResourceManager
Date Fri, 27 Jan 2006 15:41:57 GMT
Long time ago I mentioned a problem with the usage of the transaction ids as
directory name [1]. This problem resulted from JOTM using colon as part of an
Xid. For easier subclassing I created a patch at [2], so that all references to
this directory are collected at one place (getTransactionBaseDir(Object txId)).
This method could be easily overwritten in subclasses. Would be nice if anyone
could apply it.

Besides that I have a second problem subclassing FileResourceManager. I want to
add a feature allowing to append to an existent file, by adding
writeResource(Object txId, Object resourceId, boolean append). I copied the
existing writeResource(Object txId, Object resourceId) into my subclass and
ended at TransactionContext.readonly not being visible to my subclass. The
simple solution would be to add a public setter to TransactionContext, the
better solution to implement writeResource(Object txId, Object resourceId,
boolean append) ;)
For the implementation: If I get it correctly the file that should be written to
must be copied from store dir to work dir if it does not yet exist in the work




To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message