|
Re: Gemini Simple ManagedService [message #730715 is a reply to message #730710] |
Thu, 29 September 2011 00:52 |
Dmitry Sklyut Messages: 279 Registered: January 2010 |
Senior Member |
|
|
<osgix:cm-properties id="dataSource-props" persistent-id="ca.mrvisser.dynamicdb.dataSource">
This defines a "consumer" of the configuration. So you are saying that if there is anything for "ca.mrvisser.dynamicdb.dataSource" - please give it to me.
<prop key="driverClassName">com.mysql.jdbc.Driver</prop>
<prop key="url">jdbc:mysql://localhost/ddb</prop>
<prop key="username">ddb</prop>
<prop key="password">ddb</prop>
This says that in case there isn't anything out there - use provided properties as default.
I am not 100% sure now how Sling manages ConfigurationAdmin specific configs, but there should be a way to drop a .cfg or a .property file somewhere and have it consumed. You can do it with Felix File Install component
Hope this helps.
Dmitry
[Updated on: Thu, 29 September 2011 00:52] Report message to a moderator
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.03336 seconds