Results 1 to 2 of 2

Thread: Configuration variables not being substituted

  1. #1
    Join Date
    Oct 2011
    Posts
    11

    Default Configuration variables not being substituted

    I am using the following code coupled with the following configuration. I am not seeing the ${variable} variable listed in configuration being interpolated. Any suggestions?

    [CODE]
    public class NAXScheduler implements IServerNotify {

    @Override
    public void onServerCreate(IServer server) {
    savedCaptureRequestFN = server.getProperties().getPropertyStr("ManagedStreamsFilename", "ManagedStreams.json");
    }
    }
    [/CODE

    /config/Server.xml
     <Properties>
      <Property>
        <Name>ManagedStreamsFilename</Name>
        <Value>${com.wowza.wms.ConfigHome}/conf/ManagedStreams.json</Value>
      </Property>
    </Properties>

  2. #2
    Join Date
    Dec 2007
    Posts
    21,962

    Default

    Try it in onServerInit:

     public void onServerInit(IServer server) {
                   savedCaptureRequestFN = server.getProperties().getPropertyStr("ManagedStreamsFilename", "ManagedStreams.json");
           }
    Richard

Similar Threads

  1. Dynamic objects/variables
    By DevAccede in forum General Forum
    Replies: 1
    Last Post: 11-13-2013, 08:10 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
  •