Re: [transaction] Duplicate TX id's

2005-05-23 Thread Oliver Zeigermann
On 5/23/05, David J. M. Karlsen [EMAIL PROTECTED] wrote: Oliver Zeigermann wrote: On 5/21/05, David J. M. Karlsen [EMAIL PROTECTED] wrote: Hmm, yeah, but still - I cannot see why txId should be unique, the code is: public String generatedUniqueTxId() throws ResourceManagerSystemException

Re: [transaction] Duplicate TX id's

2005-05-23 Thread David J. M. Karlsen
Oliver Zeigermann wrote: Hmm, yeah, but still - I cannot see why txId should be unique, the code is: public String generatedUniqueTxId() throws ResourceManagerSystemException { assureRMReady(); String txId; synchronized (globalTransactions) { do { txId

Re: [transaction] Duplicate TX id's

2005-05-21 Thread David J. M. Karlsen
Oliver Zeigermann wrote: On 5/20/05, David J. M. Karlsen [EMAIL PROTECTED] wrote: Hi! I keep getting ResourceManagerExceptions with Duplicate transaction id. I took a look at the implementation of FileResourceManager - and generatedUniqueID only returns system.getCurrentMillis() - which

[transaction] Duplicate TX id's

2005-05-20 Thread David J. M. Karlsen
Hi! I keep getting ResourceManagerExceptions with Duplicate transaction id. I took a look at the implementation of FileResourceManager - and generatedUniqueID only returns system.getCurrentMillis() - which isn't random enough in a multithreaded environment. This should probably be changed into

Re: [transaction] Duplicate TX id's

2005-05-20 Thread Oliver Zeigermann
On 5/20/05, David J. M. Karlsen [EMAIL PROTECTED] wrote: Hi! I keep getting ResourceManagerExceptions with Duplicate transaction id. I took a look at the implementation of FileResourceManager - and generatedUniqueID only returns system.getCurrentMillis() - which isn't random enough in a