Hi Jochen,

you now have the jdbc:* commands to create datasource. Especially the generic datasource use jdbc:

https://git-wip-us.apache.org/repos/asf?p=karaf.git;a=blob_plain;f=jdbc/src/main/resources/org/apache/karaf/jdbc/internal/datasource-generic.xml;hb=HEAD

Regards
JB

On 10/08/2014 08:12 AM, jkraushaar wrote:
Hi there,

I like to set up a PostgreSQL data source in Karaf. In the Karaf-Tutorial a
org.postgresql.ds.PGPoolingDataSource is used (see
https://github.com/cschneider/Karaf-Tutorial/blob/master/db/datasource/datasource-postgres.xml).
On the other hand PostgreSQL recommends to not use the pooled data source
provided by them. Instead they refer to Apache Commons DBCP (see
http://jdbc.postgresql.org/documentation/93/ds-ds.html). Also our custom
Karaf assembly already has Commons DBCP 1.4 installed.

What is your experience in the past? Is it save to use PGPoolingDataSource
or should we use DBCP to create a connection pool instead?

Regards
Jochen



--
View this message in context: 
http://karaf.922171.n3.nabble.com/Pooling-with-PostgreSQL-and-Karaf-tp4035692.html
Sent from the Karaf - User mailing list archive at Nabble.com.


--
Jean-Baptiste Onofré
[email protected]
http://blog.nanthrax.net
Talend - http://www.talend.com

Reply via email to