JPA 2 « Transaction « Spring Q&A





1. Transactions not working with Spring 1.2.2/Hibernate3    forum.springsource.org

Aug 24th, 2005, 08:13 PM #1 dlockhart View Profile View Forum Posts Private Message Junior Member Join Date Aug 2005 Posts 3 Transactions not working with Spring 1.2.2/Hibernate3 I am trying ...

2. Spring, Hibernate and transaction.rollback()    forum.springsource.org

Hi, I am using spring with hibernate. From a controller's method, is there possibility to roolback the current transaction ? For example, if a test does not work into the controller. ...

3. Is JTA required with Hibernate?    forum.springsource.org

If I have a single database, is it required that I have jta.jar in my classpath to use spring+hibernate3? I don't need to use JTA if I am just accessing one ...

4. hibernate 3.1 and transactions    forum.springsource.org

hibernate 3.1 and transactions Hello, I've been doing some testing with hibernate 3.1 b3 and I'm getting an error with an explicit commit that I wasn't getting with hibernate 3.0.5. Is ...

5. Spring - Hibernate CLOB/Transaction Issues    forum.springsource.org

Nov 11th, 2005, 03:31 PM #1 matte View Profile View Forum Posts Private Message Junior Member Join Date Nov 2005 Posts 3 Spring - Hibernate CLOB/Transaction Issues Hello, I have been ...

6. Hibernate transaction not rolled back    forum.springsource.org

Hibernate transaction not rolled back Hi, I'm having a problem with a hibernate transaction not rolling back. Sometimes I get an Oracle exception when one of my merchant objects contains a ...

7. Hibernate Transaction    forum.springsource.org

Hibernate Transaction Hello experts I have a question about transaction management . I am using HIbernateTemplate to access Hibernate . I do understand that If I am using cache , then ...

8. Hibernate transaction events in Spring    forum.springsource.org

Hibernate transaction events in Spring Hi, I am implementing an event queue for the Hibernate event system for my application. I want to delay the dispatching of events to a point ...

9. Configure transaction managment in Spring or Hibernate?    forum.springsource.org

Configure transaction managment in Spring or Hibernate? I have an abstract base DAO that uses HibernateTemplates for data access. I'm a little confused as to where I should be configuring transaction ...





10. Hibernate Template and Long Transactions    forum.springsource.org

Hibernate Template and Long Transactions Hi all. I've read a bunch about long (or application) transactions in Hibernate. I understand how to do this but am a bit confused when Spring ...

11. Help me come along with transactions, hibernate    forum.springsource.org

Help me come along with transactions, hibernate I have problem understandning how I should use the transaction support when working with my beans, can someone help me explain a bit more? ...

12. Legacy Code and Spring/Hibernate within a transaction    forum.springsource.org

Legacy Code and Spring/Hibernate within a transaction This has been discussed few times in the forum. Yet I dare to post a query on using plain JDBC and Hibernate/Spring together in ...

13. Hibernate transactions    forum.springsource.org

Mar 7th, 2006, 01:15 PM #1 Salomo View Profile View Forum Posts Private Message Visit Homepage Junior Member Join Date Mar 2006 Posts 1 Hibernate transactions I'm getting the following exception ...

14. Hibernate Transaction Guidance    forum.springsource.org

Hibernate Transaction Guidance Hi I was wondering if someone could help me out on where to start. I have a simple stock trading system to write for school. I have web ...

15. hibernate optimistic locking doesn't work if you set version manually    forum.springsource.org

hibernate optimistic locking doesn't work if you set version manually I am working on a client/server app with a rich client. I have to deal with concurrent data access and am ...

16. Hibernate transactions    forum.springsource.org

Apr 18th, 2006, 02:41 AM #1 uiterlix View Profile View Forum Posts Private Message Junior Member Join Date Apr 2006 Posts 5 Hibernate transactions do not seem to rollback Hi, I'm ...





17. Spring + JPA + JTA    forum.springsource.org

Spring + JPA + JTA Hi I've been browsing through the Spring 2.0 RC1 documentation but haven't found any information about this, so I'm hoping that some of you might be ...

18. Transaction strategy for transactions covering more than Hibernate    forum.springsource.org

Transaction strategy for transactions covering more than Hibernate Hi. I am facing the following problem and would like som feedback on my suggested solution, does it work, or is there a ...

19. Non-transactional use of Spring+Hibernate    forum.springsource.org

Non-transactional use of Spring+Hibernate Spring 1.2.8 Hibernate 3.1.3 We have a "batch process" that is non-transactional. It gets a bunch of Hibernate persistent objects, one by one. For each, it gets ...

20. Spring, Hibernate and transactions that fail to roll back when expected    forum.springsource.org

Spring, Hibernate and transactions that fail to roll back when expected Hi. I am having problems getting transactions to work. I'm trying to do this: 1) load a certain User from ...

21. Spring + Hibernate3 + jpa + jta    forum.springsource.org

Spring + Hibernate3 + jpa + jta I am trying to set up and application using spring, hibernate and jpa with an application managed entitymanager. Everything is fine so long as ...

22. Transaction - Hibernate    forum.springsource.org

Aug 16th, 2006, 01:31 PM #1 maurojeff View Profile View Forum Posts Private Message Junior Member Join Date Aug 2006 Posts 4 Transaction - Hibernate hi All, I'm using Spring 1.2.8; ...

23. Hibernate programmatic transaction management    forum.springsource.org

Hi, Is it possible to create hibernate session, create some objects and save it with session, having only org.springframework.transaction.jta.JtaTransaction Manager and org.springframework.orm.hibernate3.LocalSessionFac toryBean? Where can I find example how to bind ...

24. Spring2+JPA "no transaction in progress" error    forum.springsource.org

Spring2+JPA "no transaction in progress" error I have been testing Spring2 and JPA for past few days, and retrieving information from database seems working but when I try to persist an ...

25. Spring Transaction Rollback and Hibernate setAlwaysUseNewSession    forum.springsource.org

Spring Transaction Rollback and Hibernate setAlwaysUseNewSession Hi I'm a bit of a newbie to all of this. I've got a scenario where I'm creating a Hibernate template within a Spring transaction. ...

26. hibernate + transaction behavior    forum.springsource.org

hibernate + transaction behavior hi there, i've got a strange transaction behavior using spring 1.2.6 and hibernate 3.1. the simple method shown below gets a customer object (via hibernate out of ...

27. Hibernate doesn't save objects, also with TransactionManager.    forum.springsource.org

Oct 15th, 2006, 02:46 PM #1 dino.lupo View Profile View Forum Posts Private Message Junior Member Join Date Oct 2006 Posts 4 Hibernate doesn't save objects, also with TransactionManager. I'm trying ...

28. How to use Hibernate transactions with tx:advice ?    forum.springsource.org

How to use Hibernate transactions with tx:advice ? Hello, I'm trying to use the new way to handle hibernate's transactions with tx:advice. I have a simple DAO (bookDAO) and a test ...

29. Hibernate TransactionProxyFactoryBean    forum.springsource.org

Hibernate TransactionProxyFactoryBean Hi, I'm using Spring's TransactionProxyFactoryBean to manage a Hibernate DAO in the manner suggested in the reference documentation: Code: ...

30. hibernate transaction suspension    forum.springsource.org

hibernate transaction suspension I'm getting an exception suspending a transaction using hibernate3 as my ORM framework and spring 1.2.8. My the execution path goes through three methods annotated with the org.springframework.transaction.annotation.Transac ...

31. JTA + Hibernate + Spring : Error    forum.springsource.org

JTA + Hibernate + Spring : Error Hi, I am using, Jboss 4.0.4, Hibernate 3, Spring 2.0, Java 1.5. I had a exception when I tried to save an object that ...

32. Wls + Jpa + Jta    forum.springsource.org

Hi. Is anyone using WLS with JPA Entitymanager and JTA? Is it possible? If so, could you please post your spring configuration + persistence.xml etc? Thanks, /Magnus

33. How can I configure JTA in JPA    forum.springsource.org

34. Programmatic transaction management with hibernate /Spring    forum.springsource.org

Programmatic transaction management with hibernate /Spring hi all here is the code for transaction handlling public class PersistenceManagerImpl implements PersistenceManager { private CustomerRateDAO customerRateDAO; private PlatformTransactionManager transactionManager; public void setTransactionManager(PlatformTransactionManager transactionManager) ...

35. Hibernate transaction not rolling back    forum.springsource.org

Hibernate transaction not rolling back Hi, I'm playing with Spring's transaction manager, programming the transaction rather than using delaritive management. I have a MySQL table, a HibernateDAO, which uses the HibernateTemplate, ...

36. Double transaction counts in Hibernate statistics    forum.springsource.org

When I run a test case that extends AbstractTransactionalDataSourceSpringContextTests I see a transaction count in the Hibernate statistics which is twice the number of the actual test methods in the test ...

37. Hibernate Transaction not rolling back    forum.springsource.org

Jan 3rd, 2007, 05:54 PM #1 karurk View Profile View Forum Posts Private Message Junior Member Join Date Jan 2007 Posts 6 Hibernate Transaction not rolling back I use the following ...

38. Hibernate and JTA unable to lock row (select for update)    forum.springsource.org

Hibernate and JTA unable to lock row (select for update) Spring Version: 1.2.8 Hibernate version: 3.1.3 Database: PostgreSQL 8.1 / EnterpriseDB 8.1 Currently I have a object that needs to be ...

39. spring transaction and hibernate integration error    forum.springsource.org

Jan 8th, 2007, 06:22 PM #1 LukeAlford View Profile View Forum Posts Private Message Junior Member Join Date Jan 2007 Posts 2 spring transaction and hibernate integration error Hello. I have ...

40. Rollback rules in Hibernate    forum.springsource.org

Rollback rules in Hibernate Hi, I'm writing my integration test for a transaction with Hibernate. My transaction is declared like this: PROPAGATION_REQUIRES_NEW,ISOLATION_SERIALIZABLE,-ConstraintViolationException and it consists of a simple method: // Start ...

41. Transaction Error with JPA + PROPAGATE_REQUIRES_NEW    forum.springsource.org

Transaction Error with JPA + PROPAGATE_REQUIRES_NEW Hi all, We're using the JPA (implemented by Kodo) with Spring 2.0.1. We're trying to setup declarative transaction management and we've run into a problem ...

42. @Transactional for hibernate    forum.springsource.org

@Transactional for hibernate Hi, I would like use in my hibernateDaoImpl @transactional annotation... I defined this: Code: ...

43. Managing transactions in spring using hibernate    forum.springsource.org

Managing transactions in spring using hibernate HI All, I am trying to use annotation to manage transactions. In my code I am purposely throwing an exception to verify if it gets ...

44. Transaction Rollback But Not Hibernate    forum.springsource.org

Apr 16th, 2007, 03:27 PM #1 pcheung View Profile View Forum Posts Private Message Junior Member Join Date Mar 2005 Location Toronto, Canada Posts 6 Transaction Rollback But Not Hibernate I ...

45. Spring / hibernate programmatic Transaction    forum.springsource.org

Spring / hibernate programmatic Transaction Hi all, I have a little question on Transactions... I try to use Transactions in my Portlet... since I don't need so much transactions I decided ...

46. Hibernate Transaction question    forum.springsource.org

Hibernate Transaction question hello to all. i'm using spring 2.0.5 and hibernate 3.2.4sp1 with hibernate annotatation 3.3.0 and hibernate validator 3.0.0 i'm using spring's @Transactional for my transaction needs on a ...

47. jpa & hibernate lock()    forum.springsource.org

jpa & hibernate lock() Hi, i'd like to know if the pessimistic locking in hibernate works the same as with the entity manager in jpa. F.Example in hibernate Session.lock() in jpa ...

48. Hibernate Lock with Criteria    forum.springsource.org

Hi. I have a question. I'm relatively new to Hibernate and Spring, so maybe I'm missing something. When I do something like this inside a Transaction with HibernateTemplate: Code: MyClass obj=(MyClass)hibernateTemplate.get(MyClass.class,pk) ...

49. Need help with versioning on optimistic locking mechanism of Hibernate    forum.springsource.org

The version no. of the persistence object will be automatically incremented in optimistic locking mechanism of Hibernate. But the version column is fixed length integer or long, so what is the ...

50. Spring JPA transaction management    forum.springsource.org

Spring JPA transaction management hi, im using JPA + Spring2 on my project ServiceImpl are anotated with @Transactional, and an EntityManager annotated as the @PersistenceContext, but my problem is, is there ...

51. pessimistic locking hibernate jpa    forum.springsource.org

pessimistic locking hibernate jpa Hi, i'm working with hibernate and jpa, and need to implement pessimistic locking in my application. Googleing i found that hibernate doesn't have a hint to use ...

52. Optimistic locking with Hibernate    forum.springsource.org

Optimistic locking with Hibernate Hi I am currently stuck on this Optimisitc locking feature provided by hibernate which doesn't seem to work for me. I have a Domain Object ( DO ...

53. Using Hibernate EntityInterceptor with TransactionProxyFactoryBean    forum.springsource.org

Aug 2nd, 2007, 05:02 AM #1 koalalam View Profile View Forum Posts Private Message Member Join Date Sep 2005 Location Hong Kong, China Posts 33 Using Hibernate EntityInterceptor with TransactionProxyFactoryBean Hi, ...

54. Spring, Hibernate and transactions    forum.springsource.org

Spring, Hibernate and transactions I'm using Spring+Hibernate (but no web). I'm having a problem making a certain method transactional. I have the following situation: @Transactional public void a() { b(); // ...

55. XA Transactions and Hibernate    forum.springsource.org

XA Transactions and Hibernate We have a scenario in which we need to use two flavors of Hibernate Session Factories. One XA Enabled, and other Regular. The issue is that, how ...

56. GenericDAO, Hibernate3, @Transactional    forum.springsource.org

I'm using the GenericDAO pattern per Hibernate's website, along with hibernate3.HibernateTransactionManager, hibernate3.annotation.AnnotationSessionFactoryBean , , sessionFactory.getCurrentSession(), etc. The problem is I am getting the somewhat-famous Code: No Hibernate Session bound to thread ...

57. Hibernate + Transaction Mgt.    forum.springsource.org

Hibernate + Transaction Mgt. Hi All, I am new to Spring and I read Spring in Action and implemented Transactions in our project but some how my code is not wrapped ...

58. Spring,JPA,Hibernate Transactions not working    forum.springsource.org

Spring,JPA,Hibernate Transactions not working I'm trying to use Spring and JPA with Hibernate as the JPA provider. I wrap my service method in a transaction but a transaction never gets started. ...

59. Unable to declare transaction in Spring/JPA    forum.springsource.org

It appears that if a service class does implement ANY interface the attempts to execute this service with the transactional declarations will fails with the ClassCastException, e.g. Proxy is casted to ...

60. transactions on hibernate mapped objects    forum.springsource.org

transactions on hibernate mapped objects Welcome Can anyone tell me how to enable spring to support transactions on objects retrived from hibernate? I'd like to bo able to do: Foo foo ...

61. Beginner needs help with JPA + Transactions    forum.springsource.org

Beginner needs help with JPA + Transactions Hello, I am new to spring and jpa and I cannot get the spring @Transactional annotation to work. My environment is as follows: -Tomcat ...

62. Has anybody implemented Spring-Hibernate Transaction in RCP>    forum.springsource.org

Has anybody implemented Spring-Hibernate Transaction in RCP> Hello, I am unsuccessfull in implementing Hibernate Transaction when loading/modifying the data from a data store. I get No Hibernate Session bound to thread. ...

63. How to use declaretive transaction with JPA?    forum.springsource.org

How to use declaretive transaction with JPA? Hello everyone, I have serveral problems encountered when using JPA.my web container is tomcat, and I want to use declaretive transation. I wonder if ...

64. Hibernate lock on a record    forum.springsource.org

I'm using Oracle and I configured the transactionmanager as the following:

65. JPA (Hibernate) + JTA (in JOnAS)    forum.springsource.org

Dec 17th, 2007, 08:10 AM #1 ephemeris.lappis View Profile View Forum Posts Private Message Junior Member Join Date Mar 2007 Posts 8 JPA (Hibernate) + JTA (in JOnAS) Hello. A first ...

66. How and When to do Transactions with Hibernate/JPA?    forum.springsource.org

How and When to do Transactions with Hibernate/JPA? I've been google searching and finally fixed my problem by adding a transaction. I noticed a sample app at http://forum.springframework.org/showthread.php?t=29761 that did not ...

67. Advice for transaction management with Spring and Hibernate on WAS 6?    forum.springsource.org

Advice for transaction management with Spring and Hibernate on WAS 6? I'm developing a web application that runs on Websphere 6.0 and uses Spring for several things including declarative transaction management ...

68. Spring2.5 Hibernate Transaction Q    forum.springsource.org

Spring2.5 Hibernate Transaction Q(Changes New) Today ,i hava just got the newest spring 2.5 and then i want to test its new transaction declare. I use the spring 1 style to ...

69. Can I use JPA without Transaction support?    forum.springsource.org

Can I use JPA without Transaction support? Hi there, I got this question because I tried to remove the transaction manager part of my code, and then my entities were not ...

70. JpaDialect.prepareTransaction never called for JTA configured Spring-JPA    forum.springsource.org

JpaDialect.prepareTransaction never called for JTA configured Spring-JPA I have a project where I am using an embedded JTA provider and a LocalContainerEntityManagerFactoryBean configured with a HibernateJpaVendorAdapter. I noticed that prepareTransaction was ...

71. plain Hibernate 3 API and transaction advice    forum.springsource.org

Transaction not successfully started I've a system that use a plain Hibernate 3 API (like found in Spring documentation: Implementing DAOs based on plain Hibernate 3 API) to allow Spring to ...

72. Hibernate not recognizing transaction config    forum.springsource.org

Hibernate not recognizing transaction config I've probably got a dumb error in my config file, but cannot see it. Can someone help me find it? I've got a simple test project ...

73. Hibernate 3 Transactions    forum.springsource.org

Can someone please be so kind as to post a complete source example on how to handle transaction rollbacks programmatically? i.e. transaction.rollback(); I really appreciate it... I haven't been able to ...

74. Error with JPA and JTA    forum.springsource.org

Apr 21st, 2008, 02:24 PM #1 fsimard View Profile View Forum Posts Private Message Junior Member Join Date Jun 2007 Posts 13 Error with JPA and JTA I am trying to ...

75. More complicated transactions in JPA?    forum.springsource.org

I've got a simple Spring/Hibernate+JPA app working, using the @Transactional annotation on the service interface. I assume that this tag makes each method an individual transaction -- is this correct? If ...

76. Transaction does not rollback in Spring and Hibernate    forum.springsource.org

77. Spring Transactions and Hibernate Criteria    forum.springsource.org

Spring Transactions and Hibernate Criteria Hi All, I'm a Hibernate newbie and am having a problem using the Criteria API with Spring Transactions. I'm using Spring 2.5 and Hibernate 3.2.4. Transactions ...

78. Hibernate with JTA    forum.springsource.org

Hibernate with JTA I'm using Spring 2.5 with Hibernate 3.2. My transaction manager is Bitronix and is configured within the application and not through JNDI. I've defined my JtaTransactionManager as follows: ...

79. Spring Transaction API- Hibernate and OracleOCIConnectionPool    forum.springsource.org

Spring Transaction API- Hibernate and OracleOCIConnectionPool I am attempting to setup a transaction manager to work in concert with Hibernate and OracleOCIConnectionPool. Now when I do the following with a pool ...

80. SPring + Hibernate/JPA + JTA example?    forum.springsource.org

SPring + Hibernate/JPA + JTA example? I've spent a week now and still haven't got Spring + Hibernate/JPA + JTA working. Using the forums I've come pretty close, currently I'm using ...

81. 2 Hibernate SF, 1 Transaction Mgr....possible?    forum.springsource.org

Thanks. It turns out I can now run each SF with its own Tx Mgr but I'm having problems. I've configured 2 SessionFactory(s) and 2 HibernateTransactionManager(s) but because they extend PlatformTransactionManager ...

82. Programmatic transaction with Disconnected Hibernate Object    forum.springsource.org

Programmatic transaction with Disconnected Hibernate Object I am using Hibernate through the use of the Spring HibernateTemplate within a java web service. My web service uses spring transactions programmatically through the ...

83. JPA + JTA configuration    forum.springsource.org

can you please put your persistence and application-context files on this thread? i am getting cannot create exception while using oc4j, spring, struts 1.3 and toplink jpa Thanks

84. Spring + Hibernate: Is it possible to set a transaction name?    forum.springsource.org

Spring + Hibernate: Is it possible to set a transaction name? I'm using Spring+hibernate, and Sybase. I'm wondering if it's possible to assign a name to a db transaction, when using ...

85. Transaction Handling with Hibernate    forum.springsource.org

Hi I am very new to Spring and hibernate. I developed a simple program which just inserts a simple record. I just used - getHibernateTemplate().save(employee); I have not defined anywhere set ...

86. transactions and hibernate template    forum.springsource.org

transactions and hibernate template Hi!! I have a problem with the transaction between Hibernate and Spring and HibernateTemplate. According to javadoc I understand that transactions are automatics in method execute, find, ...

87. Hibernate rollback not working    forum.springsource.org

Sep 3rd, 2008, 07:55 PM #1 ad-rocha View Profile View Forum Posts Private Message Junior Member Join Date Sep 2008 Posts 26 Hibernate rollback not working Hi all, I'm facing a ...

88. 1.2->2.5 migration: Hibernate Transactions    forum.springsource.org

1.2->2.5 migration: Hibernate Transactions I spent 14 hours today at work and couldn't solve this problem. If anyone can provide assistance, please help. I am converting a project with about 700 ...

89. Jpa -> Jta    forum.springsource.org

Jpa -> Jta I am using eclipse to create a web app in a Struct 2 + Spring 2 +JPA structure. With JPA, it works fine until I tried to convert ...

90. WAS6.1 Spring JTA JPA/Hibernate config. More    forum.springsource.org

Hi, Following my last message. if I use org.springframework.orm.jpa.JpaTransactionManager with the same configuration file as before, it WORKS ! I created an XA datasource and retry with org.springframework.transaction.jta.WebSphereUowTr ansactionManager, it DOES ...

91. Transactions with Spring+Hibernate    forum.springsource.org

Transactions with Spring+Hibernate Hi, I originally declared an Hibernate3 sessionFactory with the following configuration: Code: <...etc.> thread org.hibernate.transaction.JDBCTransactionFactory org.hibernate.dialect.MySQL5Dialect ...

92. @PesistenceContext with multiple JPA+JTA persistence units    forum.springsource.org

@PesistenceContext with multiple JPA+JTA persistence units Hi, I have spent all day reading forums, blogs and documentation on this topic without any luck. What I want to do is: - I ...

93. Hibernate TransactionManager with BasicDataSource hanging indefinetly    forum.springsource.org

Hibernate TransactionManager with BasicDataSource hanging indefinetly We are trying to use a HibernateTransactionManager to manage our transactions. Here is what i have in my code for transactions to apply. Code:

94. org.hibernate.AssertionFailure: Transaction MARKED_FOR_JOINED after isOpen() call    forum.springsource.org

org.hibernate.AssertionFailure: Transaction MARKED_FOR_JOINED after isOpen() call Hi, I am getting exception while invoking entityManager.find. Any suggestions on this?

95. disconnecting jpa entities when transaction ends    forum.springsource.org

Hi all, I use spring + hibernate + jpa in a web application. My problem is that entities don't get disconnected when transaction ends. I don't use jpa template. Is there ...

96. spring/hibernate - TransactionProxyFactoryBean is not working    forum.springsource.org

spring/hibernate - TransactionProxyFactoryBean is not working We are currently on websphere 6.0.2.19. Our setup if like this spring 2.5 + hibernate 3. Following is the setup we are trying to use ...

97. Issue in handling the transaction management- spring -hibernate    forum.springsource.org

Issue in handling the transaction management- spring -hibernate Hi, I'm facing the problem in handling transaction management I have a method onCall which is called from controller and onCall method calls ...

98. Spring - JPA Hibernate Integration: " no transaction is in progress"    forum.springsource.org

Spring - JPA Hibernate Integration: " no transaction is in progress" I am trying to integrate JPA with Spring. I am not able to persist anything into the database as it ...

99. Hibernate, transactions and cglib    forum.springsource.org

Hibernate, transactions and cglib In my application i use Hibernate and Spring declarative transaction management. When i activate transactions Hibernate uses cglib which causes LazyInitializationException when i access simple properties (no ...

100. Help on @Transactional (Spring 2.5.5 + Hibernate 3.2.6)    forum.springsource.org

Help on @Transactional (Spring 2.5.5 + Hibernate 3.2.6) Folks, I am having problem in making @Transactional, please suggest where i'm doing wrong. All my objects are using annotations. snippet from applicationContext.xml ...