ibatis « Transaction « Spring Q&A





1. Spring: separate datasource for read-only transactions    stackoverflow.com

Thanks for reading this. I have 2 MySQL databases - master for writes, slave for reads. The perfect scenario I imagine is that my app uses connection to master for readOnly=false transactions, ...

2. Code inside loops does not rollback in Spring Transaction    stackoverflow.com

I'm having the following structure of code in the service class. The problem is in the event of the exception, the transaction only rollback for "insert A()". I'm using spring-ibatis.

function ...

3. spring @Transactional don't work?    stackoverflow.com

i currently build an application use spring as framework. and i want to test batch transaction using spring. here is my code :

public class SqlMapTestDao extends SqlMapClientDaoSupport implements TestDao {

public ...

4. Incorrect work of transactions (IBatis + Spring)    stackoverflow.com

I have two tables: order and *order_detail*. Table *order_detail* has foreign key to order. When I want to safe info about order, first I make insert into order table. Then I try ...

5. Service calls to multiple dao methods    stackoverflow.com

I have a Service class such as following:

@Transactional
@Component(value = "userServiceImpl")
public class UserServiceImpl implements UserService
{
  @Autowired
  private UserDao             ...

6. Spring-iBatis transaction management    stackoverflow.com

I am new to Spring-iBatis. I am using SQlMapClient and SqlMapClientTemplate for database access. I want to know how transaction management takes place in spring-ibatis,because in my application I have to ...

7. Spring 2.5 ibatis 2.x transactions    forum.springsource.org

Spring 2.5 ibatis 2.x transactions I am a rookie to both spring and ibatis and i've been learning both of them for the past week. I've been trying to implement transactions ...

8. set transaction manager for IBATIS    forum.springsource.org

You can define a org.springframework.jdbc.datasource.DataSourceTran sactionManager for your DataSource. SqlMapTemplate and SqlMapClientTemplate will automatically participate in such transactions, just like JdbcTemplate does. Juergen

9. code change for Ibatis internal transaction support    forum.springsource.org

code change for Ibatis internal transaction support I looked around and did not see how i can submit my change to the project. Here is my diff, of the SqlMapClientFactoryBean which ...





10. Transaction Management rollback with iBatis    forum.springsource.org

Mar 9th, 2005, 04:04 AM #1 jfrompai View Profile View Forum Posts Private Message Junior Member Join Date Jan 2005 Location France Posts 6 Transaction Management rollback with iBatis Hi, I'm ...

11. Spring 1.2 + iBatis 2.1.0 = Transactions dont work !    forum.springsource.org

May 19th, 2005, 01:37 PM #1 tex View Profile View Forum Posts Private Message Visit Homepage Junior Member Join Date May 2005 Location Italy Posts 5 Spring 1.2 + iBatis 2.1.0 ...

12. Ibatis + Spring transaction    forum.springsource.org

Hi, Where can i find an example that explain me how to manage two or more tables with a single Ibatis transaction?? I've need it because, actually, i need to rollback ...

14. transactin can not rollback with ibatis    forum.springsource.org

spring transactin can not rollback with ibatis Code:

15. Ibatis batches and transactions    forum.springsource.org

Ibatis batches and transactions I'm using Ibatis with Spring. I have batch inserts working after a fashion with the following method from my dao class which extends SqlMapClientDaoSupport: public void insertWidgets(final ...

16. Exceptions thrown from iBATIS break transactions.    forum.springsource.org

Exceptions thrown from iBATIS break transactions. After many many months of pain I've tracked down my problem. I am using Spring with iBATIS to access Oracle. If a *non-transactional* iBATIS call ...





17. spring-ibatis default config: transactions ?    forum.springsource.org

I am using default configuration of spring 2.0 with ibatis trough 'spring-ibatis'... When my transactions begin and end ? How is configured spring in this case ? Is there some kind ...

18. Transactions with both iBatis and Hibernate    forum.springsource.org

Nov 16th, 2006, 07:11 AM #1 TraceyAnnison View Profile View Forum Posts Private Message Member Join Date Nov 2006 Posts 31 Transactions with both iBatis and Hibernate Hiya! I'm new to ...

19. Spring&Ibatis - Transaction Rollback Problem    forum.springsource.org

Spring&Ibatis - Transaction Rollback Problem Hi all, I'm trying to integrate Ibatis & Spring for my data access layer. All works fine, but I have a rollback problem with global transactions. ...

20. Spring & Ibatis - Transaction Rollback Problem    forum.springsource.org

Spring & Ibatis - Transaction Rollback Problem Hi all, I'm trying to integrate Ibatis & Spring for my data access layer. All works fine, but I have a rollback problem with ...

21. Spring & Ibatis - Transaction Problem    forum.springsource.org

Spring & Ibatis - Transaction Problem Hi all, I'm trying to integrate Ibatis & Spring for my data access layer. All works fine, but I have some commit/rollback problem with global ...

22. Transaction manager for iBatis    forum.springsource.org

Hi am trying out using iBatis with Spring. I have some experience with using Hibernate. When using Hibernate there exists a HibernateTransactionManager. However this is not the case with iBatis, so ...

23. Possible error in transaction management with ibatis    forum.springsource.org

Possible error in transaction management with ibatis Hello, We have an application that always uses SqlMapClientTemplate to access the database through ibatis. We do no transaction management (only in 3 cases, ...

24. Transaction Management in Spring+IBatis    forum.springsource.org

Transaction Management in Spring+IBatis I'm having a hard time understanding how transaction management works in Spring. I'm using IBatis in my data-layer and I've currently wired my application as so: Code: ...

25. How to config spring with Ibatis transaction    forum.springsource.org

How to config spring with Ibatis transaction Dear, I am using Spring + Ibatis, I know how to using calling sql in sqlMap using ibatis. However, I want to do automatic ...

26. How to config spring with Ibatis transaction    forum.springsource.org

How to config spring with Ibatis transaction Dear, I am using Spring + Ibatis, I know how to using calling sql in sqlMap using ibatis. However, I want to do automatic ...

27. iBatis and Optimistic locking    forum.springsource.org

Hi All, We're building a service development framework that uses iBATIS templating in dao layer. We have also a requirement that optimistic locking should be addressed. I know that hibernate and ...

28. ibatis lack of rollbacks using AbstractTransactionalDataSourceSpringContextTests    forum.springsource.org

ibatis lack of rollbacks using AbstractTransactionalDataSourceSpringContextTests I am having problems with AbstractTransactionalDataSourceSpringContextTests It always commits the transaction even though i have read everywhere the spring tests are especially designed to roll ...

29. Spring Programmatic Transaction issue with ibatis.    forum.springsource.org

I am using programmatic transaction in a Spring bean method. MY TransactionDefinition Setttings are. Code: DefaultTransactionDefinition def = new DefaultTransactionDefinition(); def.setPropagationBehavior(TransactionDefinition.PROPAGATION_REQUIRED); TransactionStatus status = txManager.getTransaction(def); .. this spring bean method(say method1) ...

30. Rollback not working with ibatis and informix    forum.springsource.org

Rollback not working with ibatis and informix Hi, I am running one method in a transaction. When i try to insert a duplicate record in the table i am getting "DataIntegrityViolationException". ...

31. basic ibatis/transaction question    forum.springsource.org

basic ibatis/transaction question Hello All, I'm trying to use Spring 2.5.6, Ibatis 2.3.4, and Oracle w/ Spring's DAO support. It seems that I'm not getting the transactional behavior I'd expect in ...

32. Transaction Rollback not working with iBatis + Spring    forum.springsource.org

Transaction Rollback not working with iBatis + Spring have 2 tables CUSTOMER and DEPENDENT. In CUSTOMER table the primary key is cust_id which is foreign key to DEPENDENT table. I would ...

33. rollback problem while using spring+ibatis    forum.springsource.org

Hi I am loading loading ibatis config xml using spring sqlmap client. Also configured my beans dao/dto in the spring xml. From my service layer I am getting the objects from ...

34. Spring & Ibatis - Transaction    forum.springsource.org

Jun 23rd, 2009, 03:08 PM #1 vinaya View Profile View Forum Posts Private Message Senior Member Join Date Feb 2007 Posts 129 Spring & Ibatis - Transaction Hi, I am using ...

35. Spring-Ibatis select Query failing throwing Error getting Connection from Transaction    forum.springsource.org

Spring-Ibatis select Query failing throwing Error getting Connection from Transaction Hi, I am using Spring and ibatis as DB mapping layer . i am facing one problem consistantly . my application ...

36. JTA+Geronimo Transaction+Ibatis configration Needed    forum.springsource.org

Hi All, Could any one help with a sample datasource configuration using JTA+Geronimo Transaction+Ibatis. I needed it very urgently. Thanks in advance, Kuruvi

37. Ibatis Spring - multiple datasources and transaction managers    forum.springsource.org

Ibatis Spring - multiple datasources and transaction managers I have 4 data sources. All of these data sources are for databases that live on the same server so some of these ...

38. Transaction Management for multiple Databases using Ibatis    forum.springsource.org

HI, Can anybody knows how to manage the trasactions (commits and rollbacks) if we have multiple databases in one single web application and DAO is Ibatis. Please can anybody knows help ...

39. iBATIS / SimpleJdbcDaoSupport transactions    forum.springsource.org

Hi, I'm working with a team that has written some code using iBATIS. They want to use the iBATIS transaction methods (SqlMapSession.openSession(), startTransaction(), etc.). I have written some code that uses ...

40. Help With Transactions, iBATIS, and Session Views.    forum.springsource.org

Help With Transactions, iBATIS, and Session Views. Problem: I'm working on code that does groups and user management. The objective is to add and remove user from a group. When the ...

41. Transaction Rollback issue in Spring-IBatis    forum.springsource.org

Transaction Rollback issue in Spring-IBatis Hi, I am trying to do series of inserts in my Java application using Spring/iBatis. On exception, transaction rolls back successfully and none of inserts gets ...