Results 1 to 6 of 6

Thread: is it possible to save application context file

  1. #1

    Default is it possible to save application context file

    here is how I am loading default configuration

    Code:
    AbstractXmlApplicationContext _appContext = new ClassPathXmlApplicationContext(new String[] {"app-context.xml"});
    _appContext.registerShutdownHook();
    bean properties that are loaded are being modified at runtime, is there a way to persist the entire updated context back to app-context.xml file?

    Please suggest

  2. #2
    Join Date
    Sep 2006
    Location
    UK
    Posts
    8,424

    Default

    You might want to do a search on the forum for this, it's come up a few times before.
    Barracuda Networks SSL VPN Lead Developer
    http://pramatr.wordpress.com
    http://twitter.com/karldmoore
    http://www.linkedin.com/in/karldmoore
    Any postings are my own opinion, and should not be attributed to my employer or clients.

  3. #3

    Default

    most of the posting dates back to 2005, current version of the sprig support persistence of the context with updated bean values ?

  4. #4
    Join Date
    Sep 2006
    Location
    UK
    Posts
    8,424

    Default

    Quote Originally Posted by pkbhavani View Post
    most of the posting dates back to 2005, current version of the sprig support persistence of the context with updated bean values ?
    There should be some more recent discussions, I'm pretty sure there were a couple in the last few months.
    Barracuda Networks SSL VPN Lead Developer
    http://pramatr.wordpress.com
    http://twitter.com/karldmoore
    http://www.linkedin.com/in/karldmoore
    Any postings are my own opinion, and should not be attributed to my employer or clients.

  5. #5

    Default

    anybody knows how to do this, looking for fresh ideas.

    -Praveen

  6. #6
    Join Date
    Sep 2006
    Location
    UK
    Posts
    8,424

    Default

    Did you have a look through the past articles?
    http://forum.springframework.org/showthread.php?t=37188
    Barracuda Networks SSL VPN Lead Developer
    http://pramatr.wordpress.com
    http://twitter.com/karldmoore
    http://www.linkedin.com/in/karldmoore
    Any postings are my own opinion, and should not be attributed to my employer or clients.

Posting Permissions

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