Results 1 to 3 of 3

Thread: code change for Ibatis internal transaction support

  1. #1
    Join Date
    Sep 2004
    Posts
    20

    Default 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 allows us to use the Ibatis built in transaction manager and not be forced into the EXTERNAL one.
    I can submit the actual file if you prefer

    > import com.ibatis.sqlmap.engine.transaction.jdbc.JdbcTran sactionConfig;
    > import com.ibatis.sqlmap.engine.transaction.BaseTransacti onConfig;
    63a66,67
    > private boolean externalTransactionManager = true;;
    >
    101a106,109
    > public void setUseExternalTransactionManager(boolean bUseExternalTransactionManager) {
    > this.externalTransactionManager = bUseExternalTransactionManager;
    > }
    >
    120c128,135
    < ExternalTransactionConfig transactionConfig = new ExternalTransactionConfig();
    ---
    > BaseTransactionConfig transactionConfig = null;
    > if (!externalTransactionManager) {
    > transactionConfig = new JdbcTransactionConfig();
    > }
    > else {
    > transactionConfig = new ExternalTransactionConfig();
    > }

  2. #2
    Join Date
    Aug 2004
    Location
    Montréal, Canada
    Posts
    845

    Default

    You can still post your changes to jira.
    I wonder how powerfull / flexible / transparent is iBatis internal transaction management compared to Spring one?
    Omar Irbouh

    Spring Modules Team
    http://irbouh.blogspot.com/

  3. #3
    Join Date
    Sep 2004
    Posts
    20

    Default

    The reason i want this change in, is for cases such as mine, where i do not need the full transaction management Spring provides and i cannot get the current configuration to work with DBCP.
    Do i need to open an issue to put in my code change?

    Thanks,
    David

Similar Threads

  1. Replies: 13
    Last Post: Oct 24th, 2007, 10:55 AM
  2. Unit testing with JOTM and JtaTransactionManager
    By lalle in forum Architecture
    Replies: 1
    Last Post: Oct 15th, 2005, 09:05 AM
  3. Spring code remarks
    By Alarmnummer in forum Architecture
    Replies: 18
    Last Post: Apr 7th, 2005, 07:17 AM
  4. Replies: 3
    Last Post: Nov 19th, 2004, 07:16 PM
  5. Transaction pb Hibernate/MySQL
    By syluser in forum Data
    Replies: 2
    Last Post: Aug 28th, 2004, 02:40 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •