This content has been marked as final.
Show 1 reply
-
1. Re: concurrency issue NoSuchEntityException
hmae Oct 13, 2004 11:14 AM (in response to hmae)To all,
I might have fixed the problem. However, I don't know why it worked. For my facade I put a xdoclet tag:
"transaction-type=Container"
This was something I found in a book "Enterprise JavaBeans" by Richard Monson-Haefel.
Also, instead of using findByPrimaryKey() I created another finder method that will find data by the primary key. For example, the primary key was "geoUnitKey" and I created a finder method called findByGeoUnitKey(). I was just experimenting and it worked.
Has anyone else experienced this kind of problem and did something similar? Can anyone tell me the technical reason why this works? I haven't figured it out yet.
Thanks in advance for any information you can give me.