Results 1 to 3 of 3

Thread: multiple config files for applicationcontext

  1. #1
    Join Date
    Jul 2005
    Posts
    7

    Default multiple config files for applicationcontext

    Hi all,

    I'd like to know if there is a way to split up the applicationcontext.xml into multiple files. Basically, I'd like to move the datasource configuration into another file so that the same datasource config can be shared.

    I've tried splitting up the applicationconfig.xml file, and specified both files in the FileSystemXmlApplicationContext constructor in the right order, but the parser was still complaining that the bean id for dataSoure is not defined.

    thanks

  2. #2
    Join Date
    Aug 2004
    Location
    Melbourne, Australia
    Posts
    1,104

    Default

    I'd like to know if there is a way to split up the applicationcontext.xml into multiple files
    Absolutely

    but the parser was still complaining that the bean id for dataSoure is not defined
    Make sure you don't use the local attribute to reference a bean in another file E.g. <ref local="datasource"/>

  3. #3
    Join Date
    Jul 2005
    Posts
    7

    Default

    woohoo! it works! thank you very much!

Similar Threads

  1. Replies: 7
    Last Post: Jan 8th, 2013, 04:05 AM
  2. Replies: 7
    Last Post: Jul 26th, 2005, 02:48 PM
  3. Unexpected behaviour with multiple config files
    By rgitzel in forum Container
    Replies: 7
    Last Post: Mar 8th, 2005, 07:11 PM
  4. Multiple config files
    By ultan in forum SpringSource Tool Suite
    Replies: 4
    Last Post: Jan 18th, 2005, 05:11 PM
  5. Config files with imports
    By p_d_austin in forum Container
    Replies: 3
    Last Post: Oct 25th, 2004, 11:33 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
  •