transaction 5 « Transaction « Spring Q&A





1. Spring transaction support    forum.springsource.org

Spring transaction support Hi, We have 3 tasks that all execute together or fail together. 1. Web Service call changes state 2. Email sent to customer 3. Database commit How does ...

2. Transaction config for with task-executor    forum.springsource.org

Transaction config for with task-executor Hi. I'm using SI-1.0.1.GA I have SI configuration, where one thread (actually stateful MethodInvokingJobDetailFactoryBean) reads "new" IDs from DB and sends them to a ...

3. Transactions not occuring    forum.springsource.org

I have a service method annotated as Transactional. A integration unit test of this service executing under AbstractTransactionalJUnit4SpringContextTests show that code being executed with a Transaction. When the same service is ...

4. Does Transactions stack together?    forum.springsource.org

Thanks for the help. I wasn't sure that this is what Propagation means. So, for #2, from what I can tell if setValidateExistingTransaction is true, then the isolation level and readOnly ...

5. is asynchronuse transaction even possible?    forum.springsource.org

hi.. untill i thought in jta it meant that you could execute a a datbase action in a method, send a jms method in the same method, and execute another db ...

6. Transaction management    forum.springsource.org

Hi all, I have a service method which is transactional.I have two calls 1.a call to update a local Mysql db. 2.Call a web service to update another database My requirement ...

7. Find Currently Open Transactions    forum.springsource.org

Is there any way to find out the number of currently open transactions by enabling logging or modifying the spring framework source code (2.5.6)?

8. How to check current transaction status?    forum.springsource.org

How to check current transaction status? I am retrofitting Spring transactions to a legacy system. I would like to write some tests to check that transactions are rolled back when an ...

9. Transactions    forum.springsource.org

Hii everyone. I need to have a set of sqls in a transaction. Could any one plz tell me how to begin and end transaction using Spring and jdbcTemplate.





10. JdbcBatchItemWriter and transaction rallback    forum.springsource.org

The way that skips are processed was changed in RC2. So if the error was a DataIntegrityViolationException (which you said was skippable) then this is the expected behaviour. There should be ...

11. Spring's LocalDataSourceJobStore: cannot get transactional behaviour    forum.springsource.org

Spring's LocalDataSourceJobStore: cannot get transactional behaviour Dear list, I am trying to use Quartz in my Spring application under Tomcat (which does not have Container Managed Transactions). From the documentation of ...

12. Not getting active transaction using Spring transaction management    forum.springsource.org

Not getting active transaction using Spring transaction management Hi I have tried to set up transaction management using Spring 2.5 as described in the docs but it is not working. I ...

13. Transaction not rolling back    forum.springsource.org

Code: String hql = "update Node n set n.leftId = (n.leftId + ?) where n.leftId > ? and n.leftId <= ? and ("; hql += sourceOr(foldersToMove, false) + ")"; getHibernateTemplate().bulkUpdate(hql, new ...

14. TaskExecutor and Transactions    forum.springsource.org

TaskExecutor and Transactions Hello, I have a need to execute a service method call from a Spring MVC controller asynchronously. Attempting to avoid (in the short-term) a JMS implementation, I'm trying ...

15. please help : config kinds advice in Transaction Management    forum.springsource.org

please help : config kinds advice in Transaction Management (I just begin research Spring AOP) I have problem with this config: ...

16. Newbie question : Transactions with Spring integration    forum.springsource.org

Newbie question : Transactions with Spring integration I'm working a system where we have to move data from one oracle database to another oracle database and notify users via JMS that ...





17. [ASK] load is not valid without active transaction    forum.springsource.org

[ASK] load is not valid without active transaction Hello all, I'm new in spring, i try learn a simple application with spring and hibernate. But i confuse with occurs exception. Code: ...

18. unique email: validation and transaction    forum.springsource.org

unique email: validation and transaction I provide a registration form and want to ensure that all typed in email addresses are unique, because they act as the username for login. Definition ...

19. Help with Transaction issue    forum.springsource.org

Help with Transaction issue I'm still trying to get my head around Spring Transactions and I have a more complicated situation that I can't decide the correct way to do. The ...

20. Eclipse tools for Spring transactions    forum.springsource.org

21. Can't get Spring transactions to work    forum.springsource.org

Can't get Spring transactions to work Hi all, I've having trouble bigtime with setting upp Spring transactions. I've put together a minimal example but can't get it to work. TestServiceImpl: Code: ...

22. transaction management in a loop    forum.springsource.org

I have a Dao with basic methods lets say "insertIntoTable1(id, value)" and "insertIntoTable2(id, value)" and I have a Service with a basic method lets say "serviceForTable1AndTable2(id,value)"; this service is transactional, and ...

23. Configure Spring to use no transactions at all    forum.springsource.org

Configure Spring to use no transactions at all Hello! I am a newbie with Spring and maybe this will look like a dumb question. I work at an application with Spring, ...

24. Transactional, Guaranteed    forum.springsource.org

We use the Hibernate3 template from Spring. We recently fixed a couple of bugs where we were leaking connections from our connection pool, because the session factory was being by a ...

25. Execution code after transaction    forum.springsource.org

Hi. I have the following problem: I need executed some code after transaction was commited. For example: Code: class MyManager { @Transactional public void doSomething() { // Code required transaction myDao.doSomethingWihDao(); ...

26. reading new objects within and from uncommited transaction    forum.springsource.org

reading new objects within and from uncommited transaction hi using toplink template and declarative transaction management for reasons i won't go into db entities are not visible outside of daos 2 ...

27. Issue with configuring transaction with in Spring    forum.springsource.org

Issue with configuring transaction with in Spring I am working on a application using Spring, Hibernate and Oracle 10g and have question related to configuring transaction. We are using the spring ...

28. New to transactions    forum.springsource.org

Hi I have red the reference guide and I am still wondering: 1. Using PROPAGATION_REQUIRED; What happens when a method annoted Transactional calls another method with same annotation but different properties ...

29. Clarify on Transactions    forum.springsource.org

Clarify on Transactions Hello, I'm using HibernateTemplate in my Spring application, configured as follows: Code: ...

30. trouble with transactions configuration    forum.springsource.org

trouble with transactions configuration Hello everyone, some days ago I wrote a post about a problem of objects that were saved before I actually called saveOrUpdate method. With some help I ...

31. Example for transaction management available    forum.springsource.org

Community, hello A few weeks ago I have made sample with transaction management for our junior team members. I have describe it in small review with sources. Samples available: local transaction ...

32. Missing transaction creation on request    forum.springsource.org

Missing transaction creation on request I am following the pet clinic hibernate example basically, except using annotations for entity, column, etc and spring 3.0.0M3. The session is created for the Transactional ...

33. Transaction Control by Spring    forum.springsource.org

I have a Transaction from data of MQ -> some RDBMS statements -> another data of MQ. How can I utilize Spring to ensure the above Transaction completes or none is ...

34. how to group transactions    forum.springsource.org

how to group transactions My application is designed in MVC architecture and SOA. All the dao classes extends HibernateDaoSupport from spring API. I am using declarative transaction management. My requirement is ...

35. Spring and Transaction Management    forum.springsource.org

Spring and Transaction Management I've experienced a little problem on an application using Spring and TransactionProxyFactoryBean. Suppose this example code: Code: public class MyService { public void methodA() { ... for( ...

36. Atomic transaction through whole step    forum.springsource.org

If I recall correctly beforeStep() should be called outside a transaction, so you are probably seeing the default behaviour of your Connection there (autoCommit). However, a single transaction per step is ...

37. Persist() delaying no transaction in progress    forum.springsource.org

Jun 19th, 2009, 06:33 AM #1 Thyzoul View Profile View Forum Posts Private Message Junior Member Join Date Jun 2009 Posts 5 Persist() delaying no transaction in progress I've got this ...

38. transaction does not open!    forum.springsource.org

Jun 19th, 2009, 09:47 AM #1 calvino_ind View Profile View Forum Posts Private Message Junior Member Join Date Jun 2009 Posts 21 transaction does not open! Hi, i'm facing a problem ...

39. XA transaction    forum.springsource.org

40. Can not get transactions to work    forum.springsource.org

Jul 2nd, 2009, 04:40 PM #1 PiotrB View Profile View Forum Posts Private Message Junior Member Join Date Jun 2009 Posts 19 Can not get transactions to work Hi, I used ...

41. Transactions don't seem to be working.    forum.springsource.org

Transactions don't seem to be working. Sorry if this has been asked else where but I have a save method that save a userrecord. The user record has a list of ...

42. Poller and transaction    forum.springsource.org

Hi all, In spring Integration, when using a Poller with a transaction manager, in can see in log that the poller opens, commits and closes a transaction at every poll, even ...

43. Queries outside a Transaction    forum.springsource.org

Queries outside a Transaction Hi all, I've recently read this article, that seems to suggest it is best to perform queries (i.e. read-only operations) outside a transaction, that is - without ...

44. strange behavior with transactions    forum.springsource.org

strange behavior with transactions hi everybody, i'm facing a strange problem with my transaction. I use spring to inject DAO in my EJB 3 which are deployed on a glassfish V2.1. ...

45. Retries and transactions    forum.springsource.org

Retries and transactions Is it possible to set a retry and then commit the chuck regardless of the outcome of the retry? From my testing, it seems that whenever a retry ...

46. Can't read uncommitted data within it's own transaction    forum.springsource.org

Can't read uncommitted data within it's own transaction Hope someone can give me a hint what is causing my problem to read uncommitted data from within it's own transaction, first though: ...

47. Transactions and MethodNotFoundException    forum.springsource.org

Jul 31st, 2009, 09:14 AM #1 hypersound View Profile View Forum Posts Private Message Junior Member Join Date Mar 2008 Posts 24 Transactions and MethodNotFoundException Hello guys, I'm facing a problem ...

48. Help with Transaction    forum.springsource.org

Hi. i`m new on spring and i need to to 2 project, both need to run separate and together, so to run together i do it, but to run together i ...

49. Propag Transaction to another Project    forum.springsource.org

Hi.. i have 2 project, how i do to propa the transaction from my P1 to my P2?? i put on my p2 Transaction MANDATORY and i got error, mey p2 ...

50. Question about XA Transactions    forum.springsource.org

Question about XA Transactions Hi - I need to support XA transactions across a JMS queue and an Oracle DB and I'd like to use JEE container managed transactions. The good ...

51. Query Table Inside A Transaction    forum.springsource.org

Josh, I didn't see your context file but maybe name of your transaction manager bean is not the default one ('transactionManager'). If it's not - then @Transactional annotation on AbstractTransactionalTestNGSpringContextTests won't ...

52. Transactions sends too many updates    forum.springsource.org

Transactions sends too many updates Hello, I migrated my app from Mysql to Oracle. Now I'm facing the problem that every write transaction updates every attribute of every record that was ...

53. Transaction management    forum.springsource.org

Transaction management I am a bit confused about how the transaction management works. What is it exactly that I want to make transactional in an application? Is it the DAO's or ...

54. Transactional file output    forum.springsource.org

Is it possible to use a FlatFileItemWriter as part of a transaction ? In other words, could it be used within a CompositeItemWriter together with a JMSItemWriter or a JDBCBatchItemWriter, and ...

55. Master-Slave configuration and Transaction Management    forum.springsource.org

Master-Slave configuration and Transaction Management Hi to all, I would like to simplify a little bit the transaction managment code on the project I'm currently on introducing spring transaction management (now ...

56. No transactions created    forum.springsource.org

Aug 27th, 2009, 09:04 AM #1 Manuel Ramos View Profile View Forum Posts Private Message Junior Member Join Date Aug 2009 Posts 10 No transactions created Hi all, I am stuck ...

57. doubt with transaction    forum.springsource.org

hi, I was looking documentation about transaction properties: REQUIRED. in docs, if you use REQUIRED there is one transaction working over each transactional method, if I understand it correctly: method 1 ...

58. open transaction    forum.springsource.org

open transaction I have this applicationContext.xml: Code:

59. AbstractTransactionalTestNGSpringContextTests - how to obtain current transaction?    forum.springsource.org

AbstractTransactionalTestNGSpringContextTests - how to obtain current transaction? We are using AbstractTransactionalTestNGSpringContextTests as the base class for part of our test framework. In some tests we'd like to be able to call ...

60. After returning advice & Transaction    forum.springsource.org

After returning advice & Transaction Hi all I have defined a transaction boundary around Service layer in my application. I have also applied some aspects with After Returning advice around my ...

61. Cross bundle transaction management and ManagedServiceFactory    forum.springsource.org

Cross bundle transaction management and ManagedServiceFactory Hi, I have the following setup: - multiple bundles providing and consuming services - bundle A exports service DaoA (JPA backend) - bundle B exports ...

62. Transaction Management in Web Application    forum.springsource.org

Transaction Management in Web Application Hi I am bit new to Spring so correct me if i am wrong. In a web application mostly single transaction will take place for each ...

63. spring transaction management newbie    forum.springsource.org

spring transaction management newbie I am trying to use spring transaction management for my JDBC calls . The bean configuration looks like Code:

64. Transaction Management - Which approach to take?    forum.springsource.org

Well the aop code is in the reference guide for a reason it is the recommended approach. The main differences, the new approach is more powerful and really saves you a ...

65. Spring newb, help w/ understanding transactions/persistence/lazily loaded mappings    forum.springsource.org

Spring newb, help w/ understanding transactions/persistence/lazily loaded mappings Hi guys, I am very new to spring and I think I've come to a point where I just cannot seem to grasp ...

66. how to retry a failed transaction?    forum.springsource.org

In a system with optimistic concurrency, it is typical for an application to try the transaction again several times before giving up. JDO only performs the transaction once; the application must ...

67. Decision upon Transaction Status    forum.springsource.org

Decision upon Transaction Status Hi All In my app, I have following scenario: I keep user generated files on the file system and their meta-data in Database. When user invokes file ...

68. Execute update join transaction    forum.springsource.org

Execute update join transaction Hi, I use Hibernate 3 + Spring (with regular hbm mapping files - no JPA annotation) in a layered application. Service layer transactions are declarative (with annotations) ...

69. Transaction mgmt - am I missing something?    forum.springsource.org

Transaction mgmt - am I missing something? Hi, I'm developing a spring/struts2/hibernate app, and deploying on tomcat. I'm using tx:annotation-driven, and marking my service methods with @Transactional. I was under the ...

70. spring transaction question    forum.springsource.org

New to spring. Could some one point me how to do multiple database operations within one transaction in spring 2.5? i.e. it functions simialr to: Connection conn.setAutoCommit(false); ... pstmt.executeUpdate(); // database ...

71. Transaction doesnt begin    forum.springsource.org

Dec 10th, 2009, 10:49 PM #1 Fisu View Profile View Forum Posts Private Message Junior Member Join Date Sep 2008 Location Argentina Posts 24 Transaction doesnt begin Hi, first sorry in ...

72. Transaction Exeception    forum.springsource.org

Dec 23rd, 2009, 10:51 AM #1 lakshmi.narayanan View Profile View Forum Posts Private Message Junior Member Join Date Dec 2009 Posts 2 Transaction Exeception find the error log. The application gives ...

73. Transactions in Spring 3.0 Release    forum.springsource.org

Transactions in Spring 3.0 Release Hi, When We are migrating our application to 3.0 RC1 to 3.0 RELEASE we are getting problem with TransactionState. When I am debugging my application I ...

74. Doubt in Transaction    forum.springsource.org

Doubt in Transaction Hi guys i dont know how transaction is working in my appcontext.xml PROPAGATION_REQUIRED

75. NamedParameterJdbcTemplate Transaction    forum.springsource.org

NamedParameterJdbcTemplate Transaction I am trying to execute two INSERT statements in a transaction, however using the MySQL BEGIN WORK and COMMIT didn't work. As I learned transactions should be supported using ...

76. Small question regarding transactions    forum.springsource.org

Small question regarding transactions I have a class which manages the application context for me (it creates a new one or reuses an existing one, etc...). It also gets instances of ...

77. Programmatic Transactions    forum.springsource.org

Programmatic Transactions Hey guys, I started using spring jdbc recently and I have a question regarding transactions. I'm trying to create a transaction in my BOF layer and then call 2 ...

78. Question regarding spring transaction    forum.springsource.org

It means exactly what it says--if you make a remote call (WS, RMI, etc) then any in flight transaction will not be propagated to the remote host. In other words, the ...

79. consume+reply in same transaction    forum.springsource.org

consume+reply in same transaction Is there a way to ensure that a reply to an incoming message occurs "in the same transaction" as the delivery of the message? I believe that ...

80. AbstractRoutingDatasource in transactional mode    forum.springsource.org

AbstractRoutingDatasource in transactional mode Hi, I have a requirement to update more than one datasource in the same transaction. I am using AbstractRoutingDatasource and JtaTransactionManager[JOTM (user transaction)] for my unit testing. ...

81. Transaction Support    forum.springsource.org

Transaction Support Hi every one, Please help me. I have the following requirement. User gives input---> request goes to controller -->Controller executes one method of JDBCPosDao object methods (In this method,we ...

82. Spring Transaction Management    forum.springsource.org

Spring Transaction Management Hi I don't know whether this is the right forum to raise this issue. I have got to define a transaction which spans across multiple applications where details ...

83. Spring Transaction Management    forum.springsource.org

Spring Transaction Management Hi, I am new to Spring framework and confused with following point of Spring reference document. "The Spring Framework does not support propogation of transaction contexts across remote ...

84. Transaction management    forum.springsource.org

Transaction management Hi, I am new to Spring framework and confused with following point of Spring reference document. "The Spring Framework does not support propogation of transaction contexts across remote calls,as ...

85. Different Transaction Mgmt    forum.springsource.org

Hi, Thanks for the response. I got a link "http://wheelersoftware.com/articles/spring-transactions-annotations.html" which explains the different transaction approach in Spring. But I am unable to understand the difference between Proxy-based and AOP-based. When ...

86. Tasklets, Transactions and AbstractRoutingDataSource    forum.springsource.org

Tasklets, Transactions and AbstractRoutingDataSource We have a production Spring Batch (1.1.4) application that (among other things) moves data from one RDBMS to another. As part of this effort we make use ...

87. Spring transaction management with multithreads    forum.springsource.org

Spring transaction management with multithreads Hi, I run into some problem when I was trying to perform some db operations concurrently. Basically, in each thread, I need to achieve the following: ...

88. Transaction Configuration    forum.springsource.org

I have a base service class that defines an executeService method. I have a bunch of service classes extending the base service class. I want to introduce transaction on the executeService ...

89. Starting place for undo/redo with transaction.    forum.springsource.org

Starting place for undo/redo with transaction. http://static.springsource.org/sprin...ansaction.html I am new to the Spring framework and I have been reading the resource linked above to learn about Spring Transactions. Is this the ...

90. Configuring DurableSubscription and Transaction for Queues.    forum.springsource.org

Configuring DurableSubscription and Transaction for Queues. Hi, We have done durable subscription and Transaction for Topics as follows: Code: ...

91. Transaction + Router.    forum.springsource.org

Transaction + Router. We have a transaction that we would like to propagate across chain of events. In this chain of events is a router, which might have multiple destinations. Whenever ...

92. Help with XA Transaction    forum.springsource.org

Help with XA Transaction Have a requirement to implement distributed transactions. Based on the materials found on the web, I started with a simple example but I could not make it ...

93. Skipping transactional joinpoint    forum.springsource.org

Skipping transactional joinpoint Hi, I am using transaction management with the @Transactional annotation. In my log file I find the following entries: [org.springframework.jdbc.datasource.DataSourceTran sactionManager] - Creating new transaction with name [xxx.loadSystems]: ...

94. ConstraintViolationException working in 2 different transactions    forum.springsource.org

ConstraintViolationException working in 2 different long transactions Hi When I am saving a large set of objects in a long transaction, I am getting primary key constraintviolation. I am saving a ...

96. How to call many getHibernateTemplate().save() in one single transaction    forum.springsource.org

There are many ways. Usually you have a DAO class annotated with @Transactional. As long as you make sure that the @Transactional is picked up by spring (and associated with the ...

97. Toplink transactions    forum.springsource.org

Toplink transactions Hello I'm migrating the GlassFish EJB 3 application to Spring. The application contains number of entities and JPA services that load/store these entities from/to database. The database is Oracle ...

98. Transaction in Spring Integration    forum.springsource.org

I'm using jms inbound gateway to receive incoming messages and then pass the messages to the two tranoformers for further processing. My question is how can i create transaction that span ...

99. Spring transactions and OracleCallableStatement    forum.springsource.org

Spring transactions and OracleCallableStatement Hello all, I have an existing PL/SQL API and corresponding Java Sources for complex Oracle Types based on Oracles ORAData and ORADataFactory that I need to use. ...

100. @BeforeTransaction still participating in a transaction    forum.springsource.org

@BeforeTransaction still participating in a transaction I'm using Spring Test and JUnit to run my DAO integration tests. The test class is annotated as follows: Code: @RunWith(SpringJUnit4ClassRunner.class) @ContextConfiguration( { "/testPersist-applicationContext.xml" }) ...