Results 1 to 2 of 2

Thread: How to change included file dy property value

  1. #1
    Join Date
    Oct 2004
    Location
    Moscow
    Posts
    32

    Default 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. #2
    Join Date
    Aug 2004
    Location
    Toronto, Canada
    Posts
    736

    Default

    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...
    Colin Sampaleanu
    SpringSource - http://www.springsource.com

Similar Threads

  1. Order of Bean definitions matters?
    By cfuser in forum Container
    Replies: 2
    Last Post: Oct 21st, 2005, 10:29 AM
  2. Unit testing with JOTM and JtaTransactionManager
    By lalle in forum Architecture
    Replies: 1
    Last Post: Oct 15th, 2005, 09:05 AM
  3. EHCaching Hibernate
    By dencamel in forum Data
    Replies: 3
    Last Post: Sep 6th, 2005, 09:03 PM
  4. Replies: 4
    Last Post: Aug 17th, 2005, 04:42 AM
  5. Replies: 2
    Last Post: May 13th, 2005, 05:42 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
  •