Results 1 to 3 of 3

Thread: Loading properties in applicationContext.xml

  1. #1
    Join Date
    Nov 2004
    Posts
    18

    Default Loading properties in applicationContext.xml

    Hi,

    Is there a way to specify a propery file to use à la ant? I looked and I don't see anything. I'd like to be able to specify certain information (like JDBC driver, database user/password, etc.) in a properties file instead of the XML file.

    Can I?

    Thanks,

    L

  2. #2
    Join Date
    Aug 2004
    Location
    u.s.a
    Posts
    399

    Default

    One way is to use the BeanFactoryPostprocessors
    see: http://www.springframework.org/docs/...postprocessors

    Also see the PropertiesFactoryBean: http://www.springframework.org/docs/...ctoryBean.html

  3. #3
    Join Date
    Aug 2004
    Location
    Leuven, Belgium
    Posts
    37

    Default

    Also have a look at the PropertyPlaceholderConfigurer:

    http://www.springframework.org/docs/...lderconfigurer

    Maarten

Similar Threads

  1. FlowExecutionStorage in a DB
    By cacho in forum Web Flow
    Replies: 7
    Last Post: Oct 19th, 2009, 03:36 PM
  2. Replies: 3
    Last Post: May 16th, 2005, 07:04 AM
  3. Replies: 0
    Last Post: May 8th, 2005, 02:15 AM
  4. Shared properties within application context
    By milosh in forum Architecture
    Replies: 5
    Last Post: Nov 16th, 2004, 08:29 AM
  5. Replies: 19
    Last Post: Oct 20th, 2004, 11:24 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •