Copy link to clipboard
Copied
I have a custom application for Adobe Media Server. I am trying to set up the Application.xml file and the config isn't loading properly. This is not working:
<ScriptEngine>
<config>
<createTransferFile>true</createTransferFile>
<maxDVRRollingWindow>-1</maxDVRRollingWindow>
</config>
</ScriptEngine>
This really old config which is supposed to be deprecated seems to work:
<JSEngine>
<ApplicationObject>
<config>
<createTransferFile>true</createTransferFile>
<maxDVRRollingWindow>-1</maxDVRRollingWindow>
</config>
</ApplicationObject>
</JSEngine>
Any suggestions on what is happening? I am also trying to configure FileObject, and it isn't working. I think it may be related to this really strange behavior with the config files.
old thread but maybe it will help others
I put in Application.xml at the root of my app folder
<ScriptEngine> |
<ApplicationObject> | |
q | <config> |
<!-- set variables that can be called with application.config.xxx --> | |
<node_name>nodeXXX</node_name> | |
</config> | |
</ApplicationObject> |
</ScriptEngine>
and works for me
maybe check the file permissions available as -rwx-r-r
Copy link to clipboard
Copied
<ScriptEngine> or <
JSEngine> are analogous
The xml structure for it is as follows
<ScriptEngine>
<FileObject>
<VirtualDirectory> you need to enable virtual directory support for in Server.xml in under <Security> tag
BTW, I am not aware of the tags you have mentioned i.e
<config>
<createTransferFile>true</createTransferFile>
<maxDVRRollingWindow>-1</maxDVRRollingWindow>
</config>
Copy link to clipboard
Copied
The <FileObject> tag is not working at all whether I have it in the JSEngine tag or the ScriptEngine tag. I already have turned on virtualdirectory support in server.xml.
The <config> is a way to set properties on the application.config object. It is getting ignored unless I use the <JSEngine> tag. Perhaps you can read up on the documentation before trying to help me out?
Copy link to clipboard
Copied
Any news on this? Osman did you find a solution on this? Please let me know.
Copy link to clipboard
Copied
old thread but maybe it will help others
I put in Application.xml at the root of my app folder
<ScriptEngine> |
<ApplicationObject> | |
q | <config> |
<!-- set variables that can be called with application.config.xxx --> | |
<node_name>nodeXXX</node_name> | |
</config> | |
</ApplicationObject> |
</ScriptEngine>
and works for me
maybe check the file permissions available as -rwx-r-r
Copy link to clipboard
Copied
Forgot to mention any application.config.xxx call
must be after the application is started, so for example
it should be in a function or at least in
application.onAppStart();