Hi,
On 24.12.10 13:28, "Gay David (Annecy)" <[email protected]> wrote: >Hi all, > > > >I'm playing today with iPojo Composite. I'm still searching but does >anybody know > >if I can "declare" properties on a composite that will configure the >instances > >define inside my composite ? > > > >What 'm looking is somethink like that : > > > ><!-Define the composite --> > ><composite name="MySuperComposite"> > > <property name="compositeUrlJdbc" >value="jdbc://default/url"/> > > > > <instance component="my.jdbc.consumer.impl"> > > <property name="db.url" >value="compositeUrlJdbc"/> > ></instance> > > <instance component="my.other.jdbc.consumer.impl"> > > <property name="db.url" >value="compositeUrlJdbc"/> > ></instance> > ></composite> > > > ><!-Define a first instance --> > ><instance component="MySuperComposite" name="msc1"> > > <property name="compositeUrlJdbc" >value="jdbc://oracle..."/> > ></instance> > > > ><!-Define a second instance --> > ><instance component="MySuperComposite" name="msc2"> > > <property name="compositeUrlJdbc" >value="jdbc://mysql..."/> > ></instance> > > > >In fact I would like to have a same mechanism like standard component. >With OSGi Config Admin support. > >Is it possible ? Unfortunately, it's not supported. You can define configured instances inside the composite, but the composite does not support configuration right now. It was never implemented. Regards, Clement > > > > > >Thanks for your help. > >David G. > --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]

