Hi,

Although I have used Jini a lot in the past, I never ventured beyond
Lookup and in-house services. So, I never had a go at Transactions
until now. I have a fairly simple test case, which doesn't seem to
behave as expected.

1) Lookup Javaspace and TransactionManager services.

2) Create the Transaction.
     Transaction.Created created = TransactionFactory.create(
transactionService.service, 60000 );
     Transaction transaction = created.transaction;

 3) Write my entry to the space.
    spaceService.write( new StorageEntry( id, entry ),
currentTransaction(), 6000 );

If I commit that and read it back --> No problems.


But if I abort the transaction after writing the entry to the space, I
can then start a new transaction and still receive the written entry.
So, I thought that I didn't have a transaction (currentTransaction()
returning null), but that is not the case either. I have a whole set
of testcases, and all the ones that verify commit correctness works,
whereas all testing for abort correctness fails.


Any suggestions?


Cheers
Niclas

Reply via email to