[Carbon-jira] [jira] (CARBON-12189) Script mediator(jruby) is not working in trunk since "bsf-all.jar" uses jar service provider which wont work in OSGi environment...

Vijayaratha Vijayasingam (JIRA) jira at wso2.org
Wed Jan 11 01:56:32 EST 2012


Script mediator(jruby) is not working in trunk since "bsf-all.jar" uses jar service provider which wont work in OSGi environment... 
------------------------------------------------------------------------------------------------------------------------------------

                 Key: CARBON-12189
                 URL: https://wso2.org/jira/browse/CARBON-12189
             Project: WSO2 Carbon
          Issue Type: Bug
          Components: Mediators
            Reporter: Vijayaratha Vijayasingam
            Assignee: Vijayaratha Vijayasingam
             Fix For: Future


Issue with "Service providers"(bsf-all uses jar service provider to register some script factory classes, which won't work in OSGi environment..) The only option i see is, we need to manually register those classes from the backend... 

@ synapse extensions module;
add following lines..(ScriptMediator.java class)
initScriptEngine() {
    manager.registerEngineExtension("groovy", new GroovyScriptEngineFactory());
    manager.registerEngineExtension("rb", new JRubyScriptEngineFactory());
}

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://wso2.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        


More information about the Carbon-jira mailing list