I have a nasty Problem when I start a Bean with an empty Database:
one StatelesSessionBean with a method createXX() transaction=Required
In this Method a CMP-Bean named COUNTER is called to find a Entity with a primarykey. If this primarykey does not exists the HomeInterface create() Method is called.
If two different Clients call the StatelessSessionBean at the same time I found afterwards to Databaseentries with this Primarykey.
If I use Oracle-DS (local-tx) a Warning occour:
13:35:44,348 WARN TxConnectionManager Prepare called on a local tx. Use of local transactions on a jta transaction with more than one branch may result in inconsistent data in some cases of failure.
An attempt to create an instance with existing primary key should fail unless you are using