Hi !
I was trying to create a few records for
test, and I don�t understand this exception in the create method:
I put the syncrhonized keyword in the signature and I don�t understand how could be possible to catch a DuplicateKeyException. What it�s the key ? The record number ?
If the method is synchronized, only one client can create a record at a given time. Correct ? Do I have to lock the record before write it in the file ? Locking a new record that doesn�t exist?
Please, help me!
Thanks a lot in advance,
M�rcio
(from Brazil)