Skip to main content
Participant
October 20, 2014
Answered

ScriptEngine configuration is being ignored

  • October 20, 2014
  • 3 replies
  • 676 views

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.

This topic has been closed for replies.
Correct answer Robert Mc Dowell

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

3 replies

Robert Mc Dowell
Legend
October 7, 2018

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();

trelos_kavlikos
Participant
February 27, 2015

Any news on this? Osman did you find a solution on this? Please let me know.

Robert Mc Dowell
Robert Mc DowellCorrect answer
Legend
October 6, 2018

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

Adobe Employee
October 21, 2014

<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>

Participant
October 21, 2014

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?