Implementation Spring supports handling of multiple application contexts
using ClassPathXmlApplicationContext
and FileSystemXmlApplicationContext.

ClassPathXmlApplicationContext looks good as it accepts the path to files
relative to the contribution, but there
seems to be an issue while dealing with FileSystemXmlApplicationContext, as
the relative path to the contribution is not
accepted by spring (as per design), instead it expects a path relative to
the current VM working directory.

To be specific, the path expected by spring runtime is shown below....

<bean id="beanRefFactory"
class="org.springframework.context.support.FileSystemXmlApplicationContext">
       <constructor-arg>
          <list>

<value>/src/main/resources/beanRef-SpringHelloWorld-context.xml</value>

<value>/src/main/resources/bean-frontend-springimpl-context.xml</value>
          </list>
       </constructor-arg>
</bean>

In such cases, Tuscany classloaders are unable to see the files are they are
out of the contribution and also
possibly out of the classloaders visibility.

Should we support any files outside the contribution OR can Tuscany support
such usecases?

-- 
Thanks & Regards,
Ramkumar Ramalingam

Reply via email to