Hello, Sometimes it is necessary to create a new instance with a service property field sets from an already existing service instance. It works well using annotations. My question is: How can I do the same with XML ? I tried:
*<ipojo> <component classname="a.holder.classx" name="intance1"> <provides/> <properties > <property field="afield" name="thefield" mandatory="false"/> </properties> </component> <component classname="a.service.classx" name="service1" > <provides/> </component> <instance component="myservice" name="externservice"/> <instance component="instance1" name="myinstance" > <property name="thefield" value="externdevice"/> </instance> </ipojo>* This XML file uses the java source working well with annotations, but it returns: [ERROR] instance1 : Incompatible type for the property thefield : Constructor not found exception during the creation of interface a.service.classx Furthermore, is the creation of instances, an ordered process in XML ? Thanks for your answers. -- Sent from: http://apache-felix.18485.x6.nabble.com/Apache-Felix-Users-f4833200.html --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@felix.apache.org For additional commands, e-mail: users-h...@felix.apache.org