This content has been marked as final.
Show 2 replies
-
1. Re: Embedded EJB3 doesn't work when Transaction Isolation is
bill.burke Dec 6, 2006 8:47 PM (in response to dangelo1)Sounds like a problem with your application and database.
-
2. Re: Embedded EJB3 doesn't work when Transaction Isolation is
dangelo1 Dec 6, 2006 8:51 PM (in response to dangelo1)We have discovered the cause.... In our unit test we use hibernate and it has a create setting on the ddl creation...
However the SchemaExport tool that hibernate uses calls setAutoCommit(true) which fails....
because of this the database is put into some wiered behaviour that everytime hibernate tries to generate an id using th hilo generator... it blocks because it could not for some reason get a excusive lock on the row...
our solution is to just not use the create setting for ddl generation