The properties are needed. Just point the property configurer to the correct file. The classpath: is a bad choice in your case.
Lars Am Montag 22 September 2008 00:01:28 schrieb Peter Z: > Hi > > I try to use properties file to configure components in my service units. > I would like to have one file for several components (for configuration > simplicity). > I put this to (almost) all xbean.xml files > > <bean id="propertyConfigurer" > > class="org.springframework.beans.factory.config.PropertyPlaceholderConfigur >er"> <property name="ignoreResourceNotFound" value="true" /> > <property name="location" value="classpath:OneFile.properties" /> > </bean> > > According to > http://cwiki.apache.org/SM/discussion-forums.html#nabble-tt6853934%7Ca68549 >58 it is possible to put properties file to servicemix_home/conf direcotory > (at least for http components). > > But during build time (using maven) it is necessary to have properties > files on classpath for each SU. > Otherwise I get "Failed to generate jbi.xml (...) Unable to generate > service unit descriptor (...) java.io.FileNotFoundException". So, I have > had to put props file to resources directory in each SU. > > I want to provide properties file ONLY for running time (in > servicemix_home/conf direcotory). > How to turn off processing properties at build time? > > P.
