toplink « Transaction « JPA Q&A





1. EJB3/DB2 Transactions not rolling back    stackoverflow.com

I have a situation where I have a tree of Entities, and a Session Bean. The Session Bean simply persists or merges the entities, and the method in question is marked ...

2. using toplink from hibernate    stackoverflow.com

i am using hibernate but i want to add an application that is using hibernate. the problem that i am facing is when i want to perform global transaction on that ...

3. JPA optimistic lock version handling - version value should be carried onto client side or?    stackoverflow.com

I'm wondering how to handle optimistic lock version property in entity class using JPA (toplink essentials) from server to client and vice versa. Here is the scenario.

  1. From browser user send request ...

4. JPA with non-JTA: Is it possible to close EntityTransaction safely without commit?    stackoverflow.com

I'm using JPA Toplink-essential and developing RESTful web app. Here is one thing to mention first. Not using JTA So my persistences.xml is defined not to use JTA.

 <persistence-unit name="kojoPU">    
 ...

5. JPA Toplink - what is the need of checking active transaction in the beginning of process?    stackoverflow.com

I've seen few sample on internet that checks whether the transaction is currently active at the beginning of the process. The code below which is mine get EntityManager from the factory. I can't ...

6. Eclipselink (NOT JPA) causing database timeouts during two phase commit, toplink ok    stackoverflow.com

We had our system running with Toplink, Websphere 7 and two databases (one Oracle 9 and one Oracle 8) and it was running fine. We migrated to Eclipselink (2.1.0), and we've noticed ...

7. JPA(Toplink Essentials) using JTA on Glassfish: Issue In Loading References    coderanch.com

Consider this log. [#|2010-01-05T12:26:14.000+0800|FINE|sun-appserver9.1|oracle.toplink.essentials.session.file: /software/SUN/appserver/current/domains/domain1/applications/j2ee-apps/something-ear-0.10SIT/somthing-0.10SIT_jar/-some.sql |_ThreadID=283;_ThreadName=p: thread-pool-1; w: 489;ClassName=null;MethodName=null;_RequestID=c061d8c8-b6f4-4bf1-bf07-d8a158dbf4bf;| SELECT t0.ID, t0.TRANSACTION_INDICATOR, t0.ACCOUNT_NUMBER, t0.BENEFICIARY_ID, t0.LAST_MODIFIED, t0.CURRENCY_CODE, t0.TRANSACTION_MODE, t0.STATUS_CODE, t0.PROCESSING_TIMESTAMP, t0.STATUS_DESCRIPTION, t0.MODIFIER_ID, t0.TRANSACTION_DATE, t0.TRANSACTION_AMOUNT FROM MW_TRANSACTION_DETAILS t0, MW_REFERENCE_KEEPERS t2, MW_TRANSACTION_REQUESTS t1 WHERE ((((t1.TRANSACTION_STATUS = ?) AND NOT ((t0.STATUS_CODE IS NULL))) AND (t0.TRANSACTION_INDICATOR = ?)) AND ((t2.MW_TXN_DETAIL_ID = t0.ID) AND (t1.ID = t2.MW_TXN_REQUEST_ID))) FOR UPDATE bind => [PENDING, DR]|#] [#|2010-01-05T12:26:14.000+0800|FINE|sun-appserver9.1|oracle.toplink.essentials.session.file: /software/SUN/appserver/current/domains/domain1/applications/j2ee-apps/something-ear-0.10SIT/somthing-0.10SIT_jar/-some.sql |_ThreadID=283;_ThreadName=p: thread-pool-1; ...

8. JPA (TopLink Implementation) transaction rollback behaviour    java.net

I decided to try Glassfish with the new JPA Toplink implementation, using the NetBeans IDE and while everything seemed so perfect i ran onto a very strange problem. I incluse some statements within a transaction like below, which when commits raises an exception as it should be. The problem is that the very same transaction is inactive when it reaches the ...