Multiple transaction « Transaction « Spring Q&A





1. Spring - Is it possible to use multiple transaction managers in the same application?    stackoverflow.com

I'm new spring and I'm wondering if its possible to use numerous transaction managers in the same application? I have two data access layers - one for both of the databases. I'm ...

2. how to prepogate transaction for multiple request    stackoverflow.com

can we propagate transaction for multiple request. for example in online buying. user select line items and step 1: after selecting items when he clicks the button the items should be searched in ...

3. Multiple markers on this line when using @Transactional    stackoverflow.com

for example:

@Transactional 
public boolean addPersonToDb(Person p) { // message on this line
 //some logic
}
Code compiles and runs with no problems. Message itself: Multiple markers at this line
  • implements
com.pname1.pname2.pname3.pname4.PersonDAO.addPersonToDb
  • advised by
org.springframework.transaction.interceptor.TransactionInterceptor.invoke(org.aopalliance.intercept.MethodInvocation) I can't ...

4. How to set a transaction manager that spans across multiple XAdatasources?    forum.springsource.org

Mar 14th, 2011, 08:39 PM #1 anahatait View Profile View Forum Posts Private Message Junior Member Join Date Mar 2011 Posts 2 How to set a transaction manager that spans across ...

5. Grouping multiple SqlUpdates into transactions    forum.springsource.org

Grouping multiple SqlUpdates into transactions I have two questions about grouping queries in a transaction: 1. I have a dao object that has seven private inner classes that subclass SqlUpdate - ...

6. calling multiple transactional methods nested within a method using @Transactional    forum.springsource.org

Did you figure out the issue? It doesn't seem to be an AOP issue. The problem seems to be coming from Code: List listBrkDev = subQueryBrkDev.list(); As this seems to point ...

7. Rollback issue in multiple transaction    forum.springsource.org

Rollback issue in multiple transaction Hi Friends, I am using Spring Transaction.But Rollbacking is not properly working. I have applied Transaction Injection in Business layer.The Spring Bean XML is shown below. ...

8. Multiple transaction rollback    forum.springsource.org

Multiple transaction rollback Hi, I have 3 private methods in the CustomerServiceImpl Like @Transactional(readOnly = false, propagation = Propagation.REQUIRED, rollbackFor = Exception.class) private void updateCustomer(CustomerVO customer) throws Exception { ... try{ ...

9. Transaction over Multiple DBM's    forum.springsource.org

Sep 23rd, 2005, 08:02 PM #1 lazzha View Profile View Forum Posts Private Message Member Join Date Jun 2005 Location Puebla, Mxico Posts 32 Transaction over Multiple DBM's Hi you all, ...





10. Help with persistance of multiple objects of the same type in a single transaction    forum.springsource.org

I recommend to take a look at your infrastructure and see how Hibernate works. The problem is that you are editing the id of an object which is attached to the ...

11. Multiple Transactions in a single transaction    forum.springsource.org

Does anyone of you have prior experience of performing multiple transactions using spring? I want to achieve this where I have to perform atomic transaction which has multiple transactions. Hence there ...

12. Transaction for multiple related objects and foreign constraints    forum.springsource.org

Jul 25th, 2006, 04:26 PM #1 blurryrunner View Profile View Forum Posts Private Message Junior Member Join Date Jun 2006 Posts 10 Transaction for multiple related objects and foreign constraints I ...

13. @Transactional with multiple transaction managers?    forum.springsource.org

I'd like to use annotation based transactions with hibernate as described in 2.0, however I have more than one session factory and consequently more than one transaction manager. Obviously I'd have ...

14. Multiple transaction managers?    forum.springsource.org

Multiple transaction managers? Hi, uptil now i have gotten away without using a transaction manager and relying on the default auto-commit=true setting of my jdbc driver (lucky me!!!). On my new ...

15. Can transactions span multiple method calls?    forum.springsource.org

I'm in the process of learning Spring data management and I've read about how you can specify methods to be executed transactionally. Like: Code: PROPAGATION_REQUIRED In all of the documentation ...

16. How to extend transaction scope to multiple "save"s in a loop?    forum.springsource.org

How to extend transaction scope to multiple "save"s in a loop? Spring 1.2.8, Hibernate 3.0.5, JDK 1.4.2, WebLogic 8.1.4. I have a commons-chain command that iterates through a loop and does ...





17. Declared Transactions still contain multiple commits    forum.springsource.org

public ModifyService extends IModifyService { public void modifyRecord( Entry entry ) { Record rec = mHibernateDAO.getRecord(); record.updateFromEntry( entry ); this.deleteStuff( record ); this.regenerateStuff( record ); } }

18. JPA - Multiple persistence units sharing transaction using local transactions    forum.springsource.org

JPA - Multiple persistence units sharing transaction using local transactions This is the situation: I have multiple jar files defining different persistence units. They can be used in different contexts, as ...

19. Transactions with multiple DBs [Not JTA]    forum.springsource.org

Hello all, In our app we have 2 datasources. The 1st DS is used by hibernate and the TXs are controlled by HibernateTransactionManager. We defined AnnotationSessionFactoryBean to read the transactional attribute ...

20. multiple transactions without nesting...    forum.springsource.org

Looking to do something like this. This right now execute non-transactionally. I would like each method to do a begin and commit. Code: @Transactional( propagation=Propagation.NEVER) public void operation() { op1(); // ...

21. @Transactional and multiple transactions?    forum.springsource.org

Hi, I have a method with retrieves a resultset and executes an update per record. I need a transaction per update. Can this be achived via @Transactional? Code: @Transactional public class ...

22. Multiple web applications, single transaction    forum.springsource.org

Multiple web applications, single transaction Hello, I have got a web-application consisting of two WAR files (A and B), each of them containing their own Spring bean definitions et al. Each ...

23. multiple transaction templates    forum.springsource.org

multiple transaction templates This might be a silly question but what happens if I define 2 TransactionTemplates: TransactionTemplate TTA (where propogation = NEW) TransactionTemplate TTB (where propogation = REQUIRED) and we ...

24. Multiple Transaction managers Spring 2.5.x Bug    forum.springsource.org

Multiple Transaction managers Spring 2.5.x Bug When we upgraded 2.0 to spring 2.5.4 were unable to persist JPA Entities. This was because spring no longer will load both of the transaction ...

25. Multiple update integrity enforced by transactions?    forum.springsource.org

Multiple update integrity enforced by transactions? I wonder if I'm misunderstanding what transactions can do for me... I'm trying to implement a "set based tree" in a Entity. A set based ...

26. multiple persistence units with single native transaction manager    forum.springsource.org

multiple persistence units with single native transaction manager I have two persistence units into two separate jars (modules). They do not know about each other. My application is using these two ...

27. multiple persistence units sharing the same native transaction manager    forum.springsource.org

multiple persistence units sharing the same native transaction manager Hi, I'm trying to achieve this: 1. bundle A - persistence unit A (entity classes + persistence.xml) 2. bundle B - persistence ...

28. Multiple JTA Transaction managers in Web application    forum.springsource.org

Multiple JTA Transaction managers in Web application Hi I have a situation where the web application I am working in may end up having multiple JTA transaction managers in it. Basically ...

29. Multiple transaction in method write    forum.springsource.org

Multiple transaction in method write Hello, I'm doing a batch with is parsing a flat file. For each line of this file I'm creating multiple objects. In the itemReader, i'd like ...

30. How to have multiple commits within a Spring transaction with Hibernate    forum.springsource.org

How to have multiple commits within a Spring transaction with Hibernate I have a long-running back-end process that I want to commit to the database at regular intervals within the same ...

31. auto-rollback multiple separate transactions    forum.springsource.org

auto-rollback multiple separate transactions I have a test that needs to write to my data store in two separate transactions. I'd like Spring to roll back both of those transactions when ...

32. Ability to wrap multiple steps in a transaction?    forum.springsource.org

Hello, Say for example I have a job that consists of 10 steps.. Each step executes some SQL or a stored proc. The job gets to say step 6 and something ...

33. Multiple transaction managers    forum.springsource.org

will this is what I thought, maybe am doing something wrong! I use HibernateDaoSupport for the calls on DB, dataSource for the SP calls and jdbcDAOSupport for invoking jasper reports fillManager ...

34. Multiple Transaction Managers with @Transactional    forum.springsource.org

Multiple Transaction Managers with @Transactional Hi all, I am trying to use multiple transaction managers with the @Transactional annotation in Spring 3 using qualifiers as described in the Spring documentation here, ...

35. transaction not spanning multiple method calls    forum.springsource.org

transaction not spanning multiple method calls I am trying spring transaction using AOP as given in the reference. My problem is spring is creating new transaction everytime a method is called ...

36. Using Multiple Transaction Managers with @Transactional    forum.springsource.org

Using Multiple Transaction Managers with @Transactional I am trying to use multiple transaction managers with @Transactional; however, my code will not compile. I have specified the Spring 3.0.2 jars in my ...

37. @Transactional with multiple Persistence Units    forum.springsource.org

Code: ... @Transactional public void updateDB2FromDB2(){ DB1Entity data1 = DB1Repo.getData(...); DB2Entity data2 = DB2Repo.getData(...); ... some code to update data2 with stuff from data1 ... then end of method, assume transaction ...

38. Multiple transaction managers @Transactional    forum.springsource.org

Multiple transaction managers @Transactional I am using Spring 3 and trying to use multiple transaction managers with @Transactional. I have the following bean for transaction managers: ...