• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
Locked
0

ScriptEngine configuration is being ignored

New Here ,
Oct 20, 2014 Oct 20, 2014

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.

Views

590

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Correct answer

Advisor , Oct 06, 2018 Oct 06, 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

Votes

Translate

Translate
Adobe Employee ,
Oct 21, 2014 Oct 21, 2014

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>

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Oct 21, 2014 Oct 21, 2014

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?

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Beginner ,
Feb 27, 2015 Feb 27, 2015

Copy link to clipboard

Copied

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

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Advisor ,
Oct 06, 2018 Oct 06, 2018

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

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Advisor ,
Oct 07, 2018 Oct 07, 2018

Copy link to clipboard

Copied

LATEST

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

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines