Announcement Announcement Module
Collapse
No announcement yet.
How to change included file dy property value Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • How to change included file dy property value

    I have 2 xml config files with the same bean name but with different implementation.

    How to swith it by property value?

    I want something like this:

    config.properties
    ------------------

    with_implementation=impl1

    applicationConfig
    --------------------
    <include resource="application-${with_implementation}.xml"/>


    Is it possible?
    Perhaps is there another way to do that?

  • #2
    You can't do it declaratively. The only way I can thnk of doing this is programmatically, by having you code actually instantiate one vs. the other...

    Comment

    Working...
    X