Announcement Announcement Module
Collapse
No announcement yet.
multiple config files for applicationcontext Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • 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
    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"/>

    Comment


    • #3
      woohoo! it works! thank you very much!

      Comment

      Working...
      X