Results 1 to 3 of 3

Thread: how to use writeAppConfig ?

  1. #1
    Join Date
    Oct 2014

    Default how to use writeAppConfig ?

    I want set node <AppType> to "live" in Application.xml file, I use code:
    IApplication app = vhost.getApplication(appName);
    app.writeAppConfig("AppType", "live");
    The file Application.xml content is deleted ,only "live"。

    <?xml version="1.0" encoding="UTF-8"?>
    <Root version="1">

  2. #2



    It would be useful to have some context for what you are trying to achieve. Rewriting AppType on a running app is probably not the safest method. I believe the changes only last as long as the app is in memory so it's not a permanent change, but maybe that's what you're after. Can you expand on your desired outcome and the reasons behind it? There may well be other options.


  3. #3
    Join Date
    Oct 2014


    writeAppConfig(String sName, String data)
    Method to write xml config file..
    readAppConfig(String sName)
    Method to read xml config file..

    How to use these functions?

Similar Threads

  1. createApplication and writeAppConfig methods
    By reardencode in forum General Forum
    Replies: 6
    Last Post: 12-21-2011, 07:22 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