Hello,

Implementation scripts are currently resolved by the thread context
classloader.

The code in  org.apache.tuscany.sca.extension.helper.utils.
ResourceUtil.readResource(String scriptName) is:
    ...
    //FIXME The classloader should be passed in
    ClassLoader cl = Thread.currentThread().getContextClassLoader();
    URL scriptSrcUrl = cl.getResource(scriptName);

I think scripts should be read from contributions, with contribution
import/export semantics, using a model resolver which uses the contribution
classloader.

There is similar code in <implementation.query/> as well which reads the
xquery script using the thread context classloader, which also looks like it
should use a contribution based model resolver.

Thoughts?


Thank you...

Regards,

Rajini

Reply via email to