You can also add the config in a feature.xml, I will create the file in
the "etc" directory when installing your feature :

        <config name="org.ops4j.datasource-vineyard">
            osgi.jdbc.driver.class=org.apache.derby.jdbc.EmbeddedDriver
            dataSourceName=jdbc/vineyard
            url=jdbc:derby:data/vineyard/derby;create=true
        </config>

François Papon
fpa...@apache.org
Open3m - https://www.open3m.io

Le 08/06/2018 à 19:09, Francois Papon a écrit :
> Here an example of datasource-file for Apache Derby database :
>
> osgi.jdbc.driver.class=org.apache.derby.jdbc.EmbeddedDriver
> dataSourceName=jdbc/vineyard
> url=jdbc:derby:data/vineyard/derby;create=true
>
>
> François Papon
> fpa...@apache.org
> Open3m - https://www.open3m.io
>
> Le 08/06/2018 à 18:45, Jean-Baptiste Onofré a écrit :
>> Yes, you have to install the datasource "provider".
>>
>> And then, use jdbc:ds-create that create
>> etc/org.ops4j.datasource-xxx.cfg file
>>
>> Regards
>> JB
>>
>> On 08/06/2018 16:24, ceugster wrote:
>>> Hi
>>>  I tried to follow the enterprise jdbc section of your documentation and had
>>> some time to find out, that besides 
>>>
>>> karaf@root()> feature:repo-add pax-jdbc
>>> karaf@root()> feature:install pax-jdbc
>>> karaf@root()> feature:install pax-jdbc-config
>>> karaf@root()> feature:install jdbc
>>>
>>> there should also be mentioned:
>>>
>>> karaf@root()> feature:install pax-jdbc-derby
>>>
>>> if one would try the example to create a datasource. I do not know, how I
>>> can you inform better than this way.
>>>
>>>
>>>
>>>
>>> --
>>> Sent from: http://karaf.922171.n3.nabble.com/Karaf-User-f930749.html
>>>

Reply via email to