On 5/11/05, Niklas Gustavsson <[EMAIL PROTECTED]> wrote:
> when using FileResourceManager, you need to supply a storeDir. Now, if I
> need to write files to different locations within the same transaction.
> For example c:\somedir\somesubdir\file.txt and
> c:\someotherdir\someotherfile.txt, could I specify c:\ as my store dir
> and use the full path (without c:\) as the resource ID? Will this be an

Yes.

> issue with having multiple FileResourceManagers working on c: (the Java
> docs mentions "Special Caution: Be very careful not to have two
> instances of FileResourceManager working in the same store and/or
> working dir."). What type of issues might this cause? Deadlocks?

No deadlocks, but possibly inconsistent data as locking only takes
effect inside a single resource manager.
 
> Is it at all possible to write file to seperate discs (c:, d:) within
> the same transaction? I know that the docs does not recommend doing this
> because the lack of check for disc space, but anyways?

It is not possible to do so. All files participating in a transaction
must have the same root.

Oliver

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to