server « Transaction « JPA Q&A





1. Server-side optimistic locking in a ReSTful app: handling asynchronous requests from the same client    stackoverflow.com

I am working on a project that is in transition from proof-of-concept to something worthy of a pilot project. One of the key improvements for this phase of development is to ...

2. How to persist Entity in separate thread with JPA on J2EE App server?    stackoverflow.com

I have a chat application that needs to store messages to DB. But connection with DB is a little bit slow, therefore it delays response to chat client. Is it possible to ...

3. Hibernate JPA with JTA and Glassfish Application Server doesn't seem to commit    stackoverflow.com

I'm new to hibernate and I want it to use the database connection from the application server via JNDI. The Strange thing is, that it creates my tables in the database but ...

4. Transaction C++ Server Corba and Hibernate    coderanch.com

Hi everyone, I have found a web base application (no ejb, no container) running on wsad5.1 which updates an Oracle database via Hibernate. This application also uses a C++ server via Corba and the ORM persistence Corba which updates the same database but not the same tables (fortunately). Currently, there is no two phases commit. I am wandering what would be ...

5. How to Put a Hibernate Session under the App Server's Transaction ?    coderanch.com

Hi all, My requirement is as follows : I am using Weblogic 8.1 and Hibernate. I have a SessionBean. From this Bean I make three create calls to hibernate. Two of the calls should be a part of the Transaction that the Session Bean has started. The third should have its own Transaction and should not be a part of the ...

6. Concurrent Updates from several servers    forum.hibernate.org

Hi, im facing a problem with concurrent updates and i'm not sure how this should be handled. I have a web application (webservice -> spring -> hibernate) which (simplified) handles a counter in the db. the webservice is called with a value x, which has to be added to the current value in the database. to make it a bit more ...

7. Transaction Manager for Sun ONE App Server 7    forum.hibernate.org

package net.sf.hibernate.transaction; /** * TransactionManager lookup strategy for Sun ONE Application Server 7 * @author Robert Davidson */ public class SunONE7TransactionManagerLookup extends JNDITransactionManagerLookup { protected String getName() { return "java:/TransactionManager"; } public String getUserTransactionName() { return ...

8. Transaction does't work - Server Timeout ???    forum.hibernate.org

Author Message beginit Post subject: Transaction does't work - Server Timeout ??? Posted: Thu Aug 05, 2004 11:09 am Newbie Joined: Mon Aug 02, 2004 8:32 am Posts: 16 Our problem is that we have no error messages but the Code also does't work and nothing is written into the database. The Action code: Code: /* ****************************************************************************** * * ...

9. How to Put a Session under the App Server's Transaction ?    forum.hibernate.org

Hi all, My requirement is as follows : I am using Weblogic 8.1 and Hibernate. I have a SessionBean. From this Bean i make three create calls to hibernate. Two of the calls should be a part of the Transaction that the Session Bean has started. The third should have its own Transaction and should not be a part of the ...





10. Transaction problem in application server    forum.hibernate.org

Read the rules before posting! http://www.hibernate.org/ForumMailingli ... AskForHelp [b]Hibernate version: 3.0[/b] [b]Mapping documents:[/b] [b]Code between sessionFactory.openSession() and session.close(): try { session = HibernateUtil.currentSession(); tx = session.beginTransaction(); // do insert into database tx.commit(); } catch(Exception e) { if (tx != null) tx.rollback(); } finally { session.close(); HibernateUtil.closeSession(); } [/b] [b]Full stack trace of any exception that occurs:[/b] [b]Name and version of the ...

12. transaction deadlocked on flush() with MS SQL Server    forum.hibernate.org

Need help with Hibernate? Read this first: http://www.hibernate.org/ForumMailingli ... AskForHelp Help appreciated. I'm getting transaction deadlocked on a flush() call (see below stack trace). The sessions are retrieved from ThreadLocal. The code piece that seems to cause this problem is: if (dataManager.currentSession() == null) { dataManager.currentSession(true); //create a seesion } else { dataManager.currentSession().flush(); } aLun = deviceManager.getLunByIdentifier(idStr); dataManager.currentSession() looks like: static ...

13. MS Sql server automatic rollback    forum.hibernate.org

Hibernate version:3.0 If MSSql Server 2000 encounters a syntax error it automatically rolls back the transaction without the rollback ever getting to hibernate For example: create table t1 (a int Primary key ) begin tran insert into t1 values("test") --never gets here insert into t1 values(1) commit tran Hibernate's transaction never gets the information of rollback. The relevant code would be ...

15. transaction problem when using multiple servers    forum.hibernate.org

Hi all, We have a webapp based on hibernate, we have several servers on different machines running this webapp and we have encountered that transactions don't span multiple servers, if i have two transactions (in different servers) updating the same table i obtain a mix of both updates. What must i do? Thanks in advance.

16. Hibernate/Oracle App Server 10.1.2 issue- TransactionManager    forum.hibernate.org

Hi, i am uisng Hibernate in my application which is running in Oracle App Server 10.1.2 middle tier. i am struck up with this issue for last one week. the problem is i am having the following lines in my hibernate.cfg.xml for JTA Transactions org.hibernate.transaction.OC4JTransactionManagerLookup org.hibernate.transaction.JTATransactionFactory this is not wokring out for me. it is giving me the folloiwng ...