rollback 2 « Transaction « Spring Q&A





1. Don't want both transactions to roll back    forum.springsource.org

Don't want both transactions to roll back Say I have the following methods Code: @Transactional methodA() { methodB(); insert record A; } @Transactional(propagation = REQUIRES_NEW) methodB() { insert record B; } ...

2. Rollback message, place back on Q if something goes wrong    forum.springsource.org

Hi ppls, Ok, so I got my basic channel thing working using jms inbound adapter. I'm successfully consuming threads and routing and everything working beautifully. Now I need to make this ...

3. Spring transaction rollback issue.    forum.springsource.org

I m facing one problem, 1. If there are 2 insert statement like where roll back is working properly Insert 1 Insert 2 FAILS Then result of insert 1 should be ...

4. no rollback    forum.springsource.org

Mar 19th, 2009, 05:30 AM #1 t.salzbrunn View Profile View Forum Posts Private Message Junior Member Join Date Mar 2009 Posts 9 no rollback Hello, Being a newbie to Spring and ...

5. Rollback Behavior    forum.springsource.org

Rollback Behavior Hi, Forum I read several threads about the rollback strategy in spring, but i still have doubts. I have the following scenario (using transaction annotations): 1) First test Service ...

6. Why is my code rollback on its own??    forum.springsource.org

Mar 24th, 2009, 10:00 AM #1 lmxu View Profile View Forum Posts Private Message Junior Member Join Date Mar 2009 Posts 18 Why is my code rollback on its own?? Hello ...

7. whole steps are rollback?    forum.springsource.org

I've a case look like this: jobA step1 -> insert to db step2 -> insert to db if an exception occur in step2, I want to rollback the data that have ...

8. get @Transactional to rollback only at the cutpoint where the transaction was created    forum.springsource.org

get @Transactional to rollback only at the cutpoint where the transaction was created I'm using aop @Transactional (aspectj in fact) to demarcate my transactions. Spring checks for an exception and if ...

9. TransactionalTestExecutionListener and REQUIRES_NEW with rollback    forum.springsource.org

Hello, We would like our methods annotated with REQUIRES_NEW to rollback during test. How? our test class annotations: @RunWith(SpringJUnit4ClassRunner.class) @ContextConfiguration(locations = { "file1-applicationContext.xml", "/file2-applicationContext.xml" }) @TestExecutionListeners( { TransactionalTestExecutionListener.class, DependencyInjectionTestExecutionListener.class, DirtiesContextTestExecutionListener.class }) ...





10. transaction doesn't rollback    forum.springsource.org

transaction doesn't rollback i just begin with transaction, please help me my config file is: ................................... ...

11. regard @Rollback    forum.springsource.org

regard @Rollback hi, i using hibernate and spring for my web app, database using mysql. i had some question regards @Rollback for my unit test. what mean by @Rollback actually ? ...

12. Starting a new transaction after initial rollback    forum.springsource.org

Starting a new transaction after initial rollback Hi, I have a requirement in which i need to start a new transaction after the initial transaction got rolledback. I start a XA ...

13. Maybe this is a bug in code of RollbackRuleAt.java for "no-rollback-for"    forum.springsource.org

Maybe this is a bug in code of RollbackRuleAt.java for "no-rollback-for" here is my application.xml Code: ...

14. @Rollback: how to set to false?    forum.springsource.org

@Rollback: how to set to false? I'm using the SpringFramework class: org.springframework.test.annotation.Rollback for the JUnit testing of my iBatis/MySql transactions and queries. I have a table that acquires its' primary key ...

15. @Rollback doesn't work with TestNG's @BeforeClass    forum.springsource.org

@Rollback doesn't work with TestNG's @BeforeClass Hi all, I am new with Spring and have a question regarding Spring with TestNG. I know TestNG from other projects and want to use ...

16. Job Rollback    forum.springsource.org

Job Rollback Hi Guys, 1 step in my job uses 3 Itemwriters like so : Code: ...





17. Partition Step Rollback    forum.springsource.org

Partition Step Rollback Hi, I am using partition step to process my transactions. Partition is based on, we can say some, code, and for perticular code has many transactions. e.g. for ...

18. BadSqlGrammarException failed rollback    forum.springsource.org

BadSqlGrammarException failed rollback Dear Spring experts, I am using Spring 2.5.6 and JUnit4 to do unit test for some DAO classes on top of a MySQL database. Normally after a test ...

19. Rollback failure    forum.springsource.org

In my Junit4 test with Spring 2.5.6 and MySQL database, rollback works well if I use the annotation @Transactional. The only exception is that if there is a SQL query error, ...

20. Programmatically rollback the CURRENT transaction    forum.springsource.org

I have a business case where I want to rollback the current transaction BUT I do not want to do it via an exception because my business method needs to return ...

21. HELP @Transactional & TransactionAspectSupport - forcing a rollback    forum.springsource.org

HELP @Transactional, REQUIRES_NEW & rollback Hi, I use the annotation @Transactional declarative transaction management and I want to forcefully rollback under certain conditions. I know I can throw an exception and ...

22. Custom behavior after rollback    forum.springsource.org

The Spring transaction reference states in the section about declarative transaction management that you can insert custom behavior in the case of transaction rollback. Unfortunately, it is not said how to ...

23. Transaction rolled back because it has been marked as rollback-only    forum.springsource.org

Hello I've got a problem with Transactional methods in services I've got an exception like this: Code: org.springframework.transaction.UnexpectedRollbackException: Transaction rolled back because it has been marked as rollback-only at org.springframework.transaction.support.AbstractPlatformTransactionManager.commit(AbstractPlatformTransactionManager.java:626) ... ...

24. How to control transaction rollback with MessageListner    forum.springsource.org

How to control transaction rollback with MessageListner I get a problem about transactiion rollback control. I inject datasource and jmstransaction manger to a messageListner. But when I throw a RuntimeException I ...

25. @Transactional and rollback    forum.springsource.org

Hi, I have 2 beans (b1, b2), both marked with @Transactional. b1 calls b2 multiple times and wants that every call into b2 runs in a separate transaction. Is this possible ...

26. Rollback in writer    forum.springsource.org

Hi, I'm new in spring and, of course, in springbatch. I have a writer that make several calls to diferent DAO's and i need to be able to make a rollback ...

27. incomplete rollback in transaction    forum.springsource.org

Hi, I'm using the @Transactional annotation in a method which executes 2 inserts via SimpleJdbcInsert: @Transactional public void add(Map data) { firstInsert.execute(data.get("first")); secondInsert.execute(data.get("second")); throw new RuntimeException(); } I would expect that ...

28. is there automatic rollback in skip event entered from an ItemWriter    forum.springsource.org

I need to understand whether or not a rollback occurs automatically if an exception is thrown in an ItemWriter and that exception class is "registered" as one that causes a skipListener ...

29. Rollback not working on alter table query    forum.springsource.org

Rollback not working on alter table query Hi, Rollbacking an alter table query does not work in this code. However rollbacking insert queries works well ! this my service class : ...

30. ConstraintViolationException doesn't rollback the transaction    forum.springsource.org

ConstraintViolationException doesn't rollback the transaction Hello, I have the exactly same problem as seen in this thread: http://forum.springsource.org/showthread.php?t=66984 Except it occurs with Spring Framework & hibernate3 not Spring Batch. When I ...

31. @transactional rollback not working    forum.springsource.org

I can think of a few things here: 1. Did you turned off/disabled Auto commit feature ? By default, it is always on which will not allow your transactions to work.You ...

32. Transaction does not rollback    forum.springsource.org

Transaction does not rollback I have a method marked as a transaction where I delete two records from different tables. I tested it by throwing an Exception after the first delete. ...

33. roll back transaction    forum.springsource.org

In the coding below, controller will call two separate service actions. but in the second save will throw runtime exception, it will roll back the second save, but first save will ...

34. Transactions Rollback not Releasing Row-Level Lock    forum.springsource.org

Transactions Rollback not Releasing Row-Level Lock I am wondering if anyone has experienced this and can give me some input. I have an application that uses Bitronix TM, JTA, Oracle database. ...

35. ItemWriter rollback    forum.springsource.org

ItemWriter rollback Hello, I have a ItemWriter using a Dao to insert records in database. I built the writer like the TradeWriter from Spring-batch samples and use an existing dao (from ...

36. No Rollback after RuntimeException    forum.springsource.org

No Rollback after RuntimeException Hi All, I wrote couple of test cases for checking the rollback feature when a Runtime exception is thrown. The log shows that the rollback is getting ...

37. ThrowsAdvice initiate rollback    forum.springsource.org

ThrowsAdvice initiate rollback Can I create a class which implements ThrowsAdvice that can instantiate a transaction rollback? For example, if the code throws a MySystemException and normally I do not want ...

38. Transaction Management-roll back not happeneing    forum.springsource.org

Transaction Management-roll back not happeneing Hi all, I am using spring declarative transaction management. I have a method where there is some database updates and after that i need to send ...

39. transactionManager not doing proper rollback    forum.springsource.org

transactionManager not doing proper rollback Hi all, I've the following context resource in tomcat:

40. Rollback partially working    forum.springsource.org

Rollback partially working hello, I've been having problems with rollback recently, and I just found out where the problem seems to be, yet I can't explain why. Here is the situation: ...

41. using TransactionProxyFactoryBean have to rollback on DataIntegrityViolationException    forum.springsource.org

Sep 21st, 2010, 12:02 PM #1 tikendra.verma@gmail.com View Profile View Forum Posts Private Message Junior Member Join Date Sep 2010 Posts 6 using TransactionProxyFactoryBean have to rollback on DataIntegrityViolationException Hi all, ...

42. Do not mark outer transaction as rollback-only if inner transaction fails    forum.springsource.org

Do not mark outer transaction as rollback-only if inner transaction fails Hello, please assume the following Code: public class MyClass { @Resource MyService myService; @PersistenceContext private EntityManager em; @Transactional public void ...

43. transaction rollbacks, but a record is inserted?    forum.springsource.org

Dec 15th, 2010, 02:17 AM #1 maya View Profile View Forum Posts Private Message Member Join Date Oct 2010 Posts 42 transaction rollbacks, but a record is inserted? Hi all I ...