Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7401627
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 29, 20262026-05-29T04:31:26+00:00 2026-05-29T04:31:26+00:00

Hi i have a following question. According to spring docs tx:annotation-driven only respects bean

  • 0

Hi i have a following question.

According to spring docs tx:annotation-driven only respects bean definition that it is define in.

However i have the following code

<import resource="applicationContext-service1.xml"/>
<import resource="applicationContext-service2.xml"/>
<import resource="applicationContext-service3.xml"/> 
<tx:annotation-driven/>

” only looks for @Transactional on beans in the same application context it is defined in. This means that, if you put “.

I have beans definte in service1, 2, 3 …

1.) Do I actually have to add tx:annotation-driven to applicationContext-service1.xml … etc.
2.) Does the order of import resource matter for transaction boundary creation.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-29T04:31:29+00:00Added an answer on May 29, 2026 at 4:31 am

    An application context is not an XML file. All the beans declared in the imported files are part of the same application context. And the order doesn’t matter.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have the following question about JPA: Can I save the order of the
I'm writing a small webapp in Grails and I have the following question regarding
Dear g++ hackers, I have the following question. When some data of an object
I have gone through following question. Convert NSString to NSDictionary It is something different
I have downloaded sample code from Apple Center.I also have gone through following question:
I have following event class. I have a question related to the Property method
Simple question: I have the following markup... <a href='#'> <img src='icon.png'> This is the
simple question :- i have the following simple if (..) statements :- if (foo
I have a question about using os.execvp in Python. I have the following bit
I have a general OOP question. If I have the following classes in C#

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.