Thank you everyone for your answers. 
@Jean Baptiste : the purpose is actually to inject datas in the deploy dirs
so i can change them dynamicly (without restarting the feature). If I put
the xml file in the bundle, would i be able to change datas dynamicly ?
Actually its access conf data to distant applications
(user/password/url/...) I though it will be nice to configure them here so
there is no service interruption.
@Jean Baptiste : the map code you gave me does not either. It returns :
org.osgi.service.blueprint.container.ComponentDefinitionException: Unable to
validate xml
Caused by: org.xml.sax.SAXParseException: cvc-complex-type.2.4.a: Invalid
content was found starting with element 'map'. One of
'{"http://www.osgi.org/xmlns/blueprint/v1.0.0":description,
"http://www.osgi.org/xmlns/blueprint/v1.0.0":argu
ment, "http://www.osgi.org/xmlns/blueprint/v1.0.0":property,
WC[##other:"http://www.osgi.org/xmlns/blueprint/v1.0.0"]}' is expected.

@Jean Philippe & Vinu : Indeed, the need is to modify the xml file thus the
datas are immediatly effective (as the jdbc datasources xml works although I
need to place the ojdbc.jar in deploy dir)
 
Maybe there is a "trick" !

Christophe



--
View this message in context: 
http://karaf.922171.n3.nabble.com/Import-Map-via-blueprint-container-tp4031365p4031377.html
Sent from the Karaf - User mailing list archive at Nabble.com.

Reply via email to