Results 1 to 3 of 3

Thread: Transaction timeout + iBatis

  1. #1
    Join Date
    Jul 2005
    Posts
    2

    Default Transaction timeout + iBatis

    Hi,

    we use iBatis in the data access layer of our application and declarative transaction management.

    It seems that the transaction timeout parameter is not supported for iBatis.
    At least DataSourceUtils.applyTransactionTimeout is not called within the iBatis support classes as far as I have seen (Springframework version 1.2.3).

    Is this correct?
    Martin Wursthorn

  2. #2
    Join Date
    Aug 2004
    Location
    Linz, Austria
    Posts
    391

    Default

    Spring's SqlMapClientFactoryBean actually uses a transaction-aware DataSource by default (see "useTransactionAwareDataSource" property). This implicitly applies transaction timeouts to all JDBC Statements that the SqlMapClient creates underneath.

    There is unfortunately no obvious way to apply transaction timeout at the JDBC Statement level, simply because SQL Maps doesn't expose them. However, that shouldn't matter too much: the transaction-aware DataSource should be fine as well.

    Juergen

  3. #3
    Join Date
    Apr 2011
    Posts
    1

    Default Transaction timeout

    by doing this we are applying transaction properties to all statements. Is there any way that we can apply timeout to specific methods or statements.

Similar Threads

  1. Unit testing with JOTM and JtaTransactionManager
    By lalle in forum Architecture
    Replies: 1
    Last Post: Oct 15th, 2005, 09:05 AM
  2. iBatis lazy load transaction issues.
    By efpiva in forum Data
    Replies: 3
    Last Post: Jun 22nd, 2005, 06:20 PM
  3. Replies: 0
    Last Post: Jun 6th, 2005, 06:22 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
  •