Results 1 to 6 of 6

Thread: Saving bean properties

  1. #1
    Join Date
    Oct 2005
    Posts
    1

    Default Saving bean properties

    Hi,

    I'm just a newbie in using Spring and I don't know if my question is correct but, is there a way to save the bean properties in the spring mapping file that it had just accessed?

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

    Default

    NAFAIK

  3. #3
    Join Date
    Aug 2004
    Location
    San Mateo, CA
    Posts
    1,265

    Default

    You mean persist runtime configuration changes? Not yet, although we've considered it. We may add database-based configuration options in 1.4.
    Rod Johnson - GM, SpringSource Division, VMware
    http://www.springsource.com
    Spring From the Source

  4. #4
    Join Date
    Feb 2005
    Posts
    47

    Default

    I am using a custom PreferencesPlaceholderConfigurer together with a java.util.prefs.Preferences implementation that read/write properties from a XML-file. Properties are then exposed to the user using the spring jmx support, and serialized to the xml-file if changed.

    This means that the runtime configuration is separated from spring in a separate xml-file and persisted whenever changed.

  5. #5
    Join Date
    Aug 2004
    Location
    San Mateo, CA
    Posts
    1,265

    Default

    Sounds interesting. I'd be interested to see the code, if you were willing to share it.
    Rod Johnson - GM, SpringSource Division, VMware
    http://www.springsource.com
    Spring From the Source

  6. #6
    Join Date
    Jun 2008
    Posts
    4

    Default

    this seem to be an old thread, but I still have the same question.
    I would like to be able to configure certain properties of a Spring Bean from a DB. Is there any solutions to this already implemented, or do I have to write my own implementation of PreferencesPlaceholderConfigurer.

Similar Threads

  1. Order of Bean definitions matters?
    By cfuser in forum Container
    Replies: 2
    Last Post: Oct 21st, 2005, 10:29 AM
  2. Spring container fails with no exception
    By naor in forum Container
    Replies: 9
    Last Post: Oct 1st, 2005, 03:39 PM
  3. EHCaching Hibernate
    By dencamel in forum Data
    Replies: 3
    Last Post: Sep 6th, 2005, 09:03 PM
  4. could not satisfy dependencies
    By springuser in forum Container
    Replies: 4
    Last Post: Apr 26th, 2005, 01:15 PM
  5. Replies: 1
    Last Post: Apr 25th, 2005, 07:37 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
  •