Hi Thomas, At the moment there is no straightforward way to configure the Script mediator JS engine to use Nashorn.
Another option would be to write a class mediator which uses the JDK default JS engine or Nashorn specifically. You can use [1] as a reference point if you are willing to write a class mediator. But you won't get the E4X XML manipulation functionality you get from the Script mediator from this. You might need to load a js library that does XML manipulation. [1] https://github.com/Asitha/nashorn-class-mediator Regards, Asitha On Fri, Jun 23, 2017 at 8:40 PM, Thomas LEGRAND < [email protected]> wrote: > Hello everybody, > > I encountered the limitation of the Rhino engine because of my heavy JSON > payload. I am using Enterprise Integrator 6.0.0 with Java 8 and I found out > that the default JS engine should be Nashorn for the Data Mapper mediator. > > Is it possible to configure the EI to use the same JS engine for the > Script mediator? > And, is it possible to configure the Rhino engine to stop the optimization > to prevent this error? > > Regards, > > Thomas > > _______________________________________________ > Dev mailing list > [email protected] > http://wso2.org/cgi-bin/mailman/listinfo/dev > > -- *Asitha Nanayakkara* <http://asitha.github.io/> Senior Software Engineer WSO2, Inc. <http://wso2.com/> Mob: +94 77 853 0682 [image: https://wso2.com/signature] <https://wso2.com/signature>
_______________________________________________ Dev mailing list [email protected] http://wso2.org/cgi-bin/mailman/listinfo/dev
