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 ?

 

 

Thanks for your help.

David G.

Reply via email to