user « Transaction « JPA Q&A





1. Hibernate - How to restrict the concurrent read of the record by multiple users?    stackoverflow.com

We are using Hibernate 3.6.0. We have requirement of retrieve next available record from the table. How do we control retrieving same record by multiple concurrent users. We need ...

2. Pessimistic locking for many user requests!    stackoverflow.com

Is it possible to create a pessimistic lock that last for many user requests? I'm interested to see if is it possible in JEE using Hibernate or PHP useing Doctrine or ...

3. Hibernate user transaction    coderanch.com

Hi, I am using hibernate to persist our data. We have a user sign up screen and we ask for credit card number. we associate credit card number with a user account during the registration process. We create a userAccount and persist to database and then try to register credit card for the user. The credit card registration process is a ...

4. Web application slows down for multiple concurrent users    forum.hibernate.org

Hello the application runs on Hibernate + Spring + Flex . Say we have 30 000 records, the application is fast in retrieving 15000 records but then slows down in retrieving the other half for multiple concurrent users. What could be done to improve this? the fetch mode is set to join, and has a batch size of 100. 2nd level ...

5. How to user TableHiLoGenerator in seperate transaction?    forum.hibernate.org

All, The TableHiLoGenerator says the following: Quote: An IdentifierGenerator that returns a Long, constructed using a hi/lo algorithm. The hi value MUST be fetched in a seperate transaction to the Session transaction so the generator must be able to obtain a new connection and commit it. Hence this implementation may not be used when Hibernate is fetching connections from an application ...

6. Is the object lock by an other user?    forum.hibernate.org

You usually don't do such a thing (since it would require long running database connections with open database locks), a much better option is optimistic concurrency control (thats what Hibernate offers, in all other aspects, it relies on the database system). Almost every documentation about transaction handling and locking should have the information about both.

7. Issue with Transactions (New User)    forum.hibernate.org

I am new user and having an issue with rolling back transactions in Hibernate. I started with the simple example for storing cat objects (with fields name, sex, weight). I am using the source code below for testing transactions. I start a transaction, create a cat named fred, do a query for cats, and print the results and it shows Fred. ...

9. Hibernate in webolgic 9.1 for concurrent users    forum.hibernate.org

Hi, I have two EAR 1)J2EE talks to Oracle 10 g with [b]standard JDBC[/b] 2)J2EE talks to Oracle 10 g with [b]Hibernate[/b] and have two different datasource. Using weblogic 9.1 application server I have also set JTA transaction timed out as ---180 XA transaction timed out as ----180 When trying to run application for one user its perfectly fine. But when ...