It works now but there could be problem with transactions.
I made change in persistence.xml:
from
<jta-data-source>xxx</jta-data-source>
to
<non-jta-data-source>xxx</non-jta-data-source>
Could be this problem? After all there is transaction, but maybe there are
not distributed transactions needed for other services. Here is log
04 Dec 2008 15:18:09,296 INFO [pool-4-thread-6] (Transaction.java:70) - TX
Required: Started transaction
[EMAIL PROTECTED]
04 Dec 2008 15:18:09,312 DEBUG [pool-4-thread-6]
(net.xxx.persistenceTest.probnaTabela.ProbnaTabela1Home.java:66) -
persisting ProbnaTabela1 instance
04 Dec 2008 15:18:09,406 DEBUG [pool-4-thread-6]
(net.xxx.persistenceTest.probnaTabela.ProbnaTabela1Home.java:66) - persist
successful
04 Dec 2008 15:18:09,406 INFO [pool-4-thread-6] (Transaction.java:70) - TX
Required: Committing transaction
[EMAIL PROTECTED]
83531 xxx TRACE [pool-4-thread-6] openjpa.jdbc.SQL - <t 10235390, conn
18496393> executing prepstmnt 16150401
SELECT COUNTERVALUE
FROM xxx.xxx.counters WITH (UPDLOCK)
WHERE COUNTERNAME = ?
[params=(String) CUSTOMER_NO]
83531 xxx TRACE [pool-4-thread-6] openjpa.jdbc.SQL - <t 10235390, conn
18496393> [0 ms] spent
83531 xxx TRACE [pool-4-thread-6] openjpa.jdbc.SQL - <t 10235390, conn
18496393> executing prepstmnt 12455974
UPDATE xxx.xxx.counters
SET COUNTERVALUE = ?
WHERE COUNTERNAME = ? AND COUNTERVALUE = ?
[params=(long) 8673337, (String) CUSTOMER_NO, (long) 8673287]
83546 xxx TRACE [pool-4-thread-6] openjpa.jdbc.SQL - <t 10235390, conn
18496393> [15 ms] spent
83546 xxx TRACE [pool-4-thread-6] openjpa.jdbc.SQL - <t 10235390, conn
4865623> executing prepstmnt 26306486
INSERT INTO xxx.xxx.ProbnaTabela1 (id_1, ime)
VALUES (?, ?)
[params=(int) 8673287, (String) D]
83546 xxx TRACE [pool-4-thread-6] openjpa.jdbc.SQL - <t 10235390, conn
4865623> [0 ms] spent