Hi, I think the current assumption is that this file is a part of the contribution that contains the composite in question. Hence it should be reasonable to use the contribution classloader to resolve this including the semantics that the import/export might bring in. Lets hear what others think.
Thanks - Venkat On 10/30/07, Rajini Sivaram <[EMAIL PROTECTED]> wrote: > > Hello, > > Can the URI used to specify the location of a property file containing the > value of a property be relative, or should it always be absolute? If it > can > be relative, what is it relative to? > > I couldn't find anything in the SCA Assembly Model Spec which gave the > format of the URI. All I could find was: > > - file (optional) – a deferencable URI to a file containing a value > for the property > > > The code which currently finds the file using this URI is > > > *org.apache.tuscany.sca.assembly.builder.impl.PropertyUtil.loadFromFile > (String > file) { > ... > if (!uri.isAbsolute()) { > //FIXME Should already be given an absolute file > url = Thread.currentThread > ().getContextClassLoader().getResource(file); > } else { > url = uri.toURL(); > } > ... > }* > > *** > * > If it is possible to specify a relative URI, should it be resolved using > the > contribution classloader using contribution import/export to read property > files from other contributions (similar to other artifacts)? > > > Thank you... > > Regards, > > Rajini >