Results 1 to 2 of 2

Thread: Local transactions applicable to several MySQL schemas?

  1. #1
    Join Date
    Nov 2007
    Posts
    177

    Default Local transactions applicable to several MySQL schemas?

    Hello,

    I am developping a Spring application and I am considering having several MySQL schemas used by the same Spring application.

    Can I use local transactions considering the above requirement or does using several MySQL schemas entails global/distributed transactions?

    If local transactions and multiple MySQL schemas is possible, can anyone please provide advice as to how to configure Spring to achieve this?

    Thanks in advance for your replies,

    Regards,

    Julien.

  2. #2
    Join Date
    Aug 2006
    Location
    Arequipa-Peru / South America
    Posts
    2,796

    Default

    Hello

    I am developping a Spring application and I am considering having several MySQL schemas used by the same Spring application.
    With the bold part I understand many Data Bases created within MySQL

    Can I use local transactions considering the above requirement or does using several MySQL schemas entails global/distributed transactions?
    If each schema should be within the same transaction you should use JtaTransactionManager
    - Manuel Jordan

    Kill Your Pride, Share Your Knowledge With All
    The Fear Of The LORD Is The Beginning Of Knowledge, But Fools Despise Wisdom And Discipline. Proverbs 1:7

    Blog


    Technical Reviewer of Apress

    • Pro SpringSource dm Server
    • Spring Enterprise Recipes: A Problem-Solution Approach
    • Spring Recipes: A Problem-Solution Approach, 2nd Edition
    • Pro Spring Integration
    • Pro Spring Batch
    • Pro Spring 3
    • Pro Spring MVC: With Web Flow
    • Pro Spring Security

Tags for this Thread

Posting Permissions

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