The factory is org.ops4j.datasource, the pid is "foo". Regards JB
On 12/11/2019 19:41, Steinar Bang wrote: >>>>>> Jean-Baptiste Onofré <j...@nanthrax.net>: > >> Hi, >> That's because it's a factory, not a config. > >> You have to use config:edit --factory. > > Hm... this was kind of strange...? > > I did this: > karaf@root()> config:edit --factory > org.ops4j.datasource-authservice-production > karaf@root()> config:property-set url "jdbc:postgresql:///ukelonn" > karaf@root()> config:update > karaf@root()> > > And the result was this: > -rw------- 1 sb sb 33 Nov 12 19:26 > org.ops4j.datasource-authservice-production-18185463578817080582.cfg > -rw-r--r-- 1 sb sb 250 Nov 12 19:24 > org.ops4j.datasource-authservice-production.cfg > -rw-r--r-- 1 sb sb 208 Nov 12 19:24 > org.ops4j.datasource-authservice-test.cfg > > The edited property is in the separate file ie. the one with > "-18185463578817080582". > > (I thought maybe karaf would combine the two files into one config. But > unfortunately, it doesn't seem to work that way...?) > > The data I see in the application is the data from the database it > connects to at default, and not the database I'm trying to set with the > URL (the database is a user database so I verify by trying to log in > with specific users). > -- Jean-Baptiste Onofré jbono...@apache.org http://blog.nanthrax.net Talend - http://www.talend.com