Hi,
After spending the whole week trying to fix this problem, i am still no closer
to the actual solution but i have discovered some more information. This
problem is Postgres specific at the moment as i have tested the
EntityManager.find() method call in the same context when using Hypersonic
Yesterday we managed to get it working with pure JDBC without any problems. We
then integrated the EntityManager with the JDBC statements, and we think the
problem exists with the .persist() method. It seems as if it returns from the
method without waiting for the commit to happen at the databas
I m facing exactly the same problem with Oracle database too.
EntityManager.find() method is not able to find the entity in the database.
In the session bean before firing a message to a queue, I m persisting some
data using EntityManager.persist() . and MDB on receiving the message, tries to
f
There is another intresting observation,
If I use the createquery then I m able to find the record in the database, that
is ..
String query = "select e from FormattedDocumentETF e where e.uoid like
'"+uoid+"'";
FormattedDocumentETF result1 =
(FormattedDocumentETF)em.createQuery
Karma,
I found that annotating the class (where the data is persisted) with
@TransactionAttribute(TransactionAttributeType.REQUIRES_NEW) solved the
problem for me, but unfortunately it does not seem to work for you. But after
reading your post i have revisited the problem and removed the anno