Hi Akila, What is the error you are getting? This sample should work without any issue. Simply, you need to create a localEntry key and then refer that key from the script mediator.
Thanks, Chanaka On Tue, Mar 31, 2015 at 1:27 PM, Akila Ravihansa Perera <[email protected]> wrote: > Hi, > > I'm trying to develop an API which contains a JS based script mediator and > to have the JS file externally. But I don't want to keep it in the registry. > > Can someone please share some synapse configuration samples if it is > possible to load a JS file from the local file-system? I came across [1] > that uses localEntry but couldn't make it work. > > [1] > https://docs.wso2.com/display/ESB480/Sample+353%3A+Using+Ruby+Scripts+for+Mediation > > Thanks. > > -- > Akila Ravihansa Perera > Software Engineer, WSO2 > > Blog: http://ravihansa3000.blogspot.com > -- -- Chanaka Fernando Technical Lead WSO2, Inc.; http://wso2.com lean.enterprise.middleware mobile: +94 773337238 Blog : http://soatutorials.blogspot.com LinkedIn:http://www.linkedin.com/pub/chanaka-fernando/19/a20/5b0 Twitter:https://twitter.com/chanakaudaya Wordpress:http://chanakaudaya.wordpress.com
_______________________________________________ Dev mailing list [email protected] http://wso2.org/cgi-bin/mailman/listinfo/dev
