This content has been marked as final.
Show 3 replies
-
1. Re: duplicate entries in db
adrian.brock Mar 28, 2002 8:15 AM (in response to plewis66)Look at the javadoc for javax.sql.Connection
If I understand what you are doing,
you want TRANSACTION_SERIALIZABLE
to stop another transaction inserting a record
after your select statement that would have been
retrieved.
All you are doing, is not seeing uncommitted records.
Regards,
Adrian -
2. Re: duplicate entries in db
plewis66 Apr 2, 2002 9:35 AM (in response to plewis66)Thanks for that....erm...
Could you tell me where I set it?
I have set it in jboss.jcml in XADataSourceLoader>>TransactionIsolation, but I a still experiencing the same problem.
In Weblogic, this is set in weblogic-ejb-jar.xml on a per bean basis, but there does not seem to be an equivalent setting available in jboss.xml.
Thanks
Phil -
3. Re: duplicate entries in db
adrian.brock Apr 2, 2002 9:53 AM (in response to plewis66)Does your database support that isolation level?
Try using getTransactionIsolation() to see what
level of isolation you get.
Regards,
Adrian