Results 1 to 3 of 3

Thread: TransactionProxyFactoryBean proxied method & thread

  1. #1
    Join Date
    May 2005
    Posts
    5

    Default TransactionProxyFactoryBean proxied method & thread

    Hello,

    I have a thread-safe method which uses sqlMapClientTemplate to return a list directly. If I wrap the method using TransactionProxyFactoryBean (PROPAGATION_REQUIRED, readOnly), will it still be thread safe? FYI, the bean is a singleton and will be used in web application.

    Please help me, I am a newbie.

    Billy

  2. #2
    Join Date
    Feb 2005
    Location
    Boston, MA
    Posts
    1,142

    Default

    Yes. Adding declarative transactions through Spring is thread safe. They use a Java concept called ThreadLocal which keeps any variables global to the transaction only in the thread its executing.

  3. #3
    Join Date
    May 2005
    Posts
    5

    Default

    Thank you. Spring is great! :lol:

Similar Threads

  1. Order of Bean definitions matters?
    By cfuser in forum Container
    Replies: 2
    Last Post: Oct 21st, 2005, 10:29 AM
  2. Spring container fails with no exception
    By naor in forum Container
    Replies: 9
    Last Post: Oct 1st, 2005, 03:39 PM
  3. EHCaching Hibernate
    By dencamel in forum Data
    Replies: 3
    Last Post: Sep 6th, 2005, 09:03 PM
  4. PerformanceMonitorInterceptor
    By tnist in forum AOP
    Replies: 3
    Last Post: Aug 24th, 2005, 01:39 PM
  5. Sessions closing after commit
    By bendg25 in forum Data
    Replies: 0
    Last Post: Mar 21st, 2005, 04:38 AM

Posting Permissions

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