If you are using Karaf 3.0.1, you can use the jdbc commands to create the data source. There is a generic data source type and I think it uses Apache Common DBCP.

Thanks,

Raj

On Wednesday 08 October 2014 11:42 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.


Reply via email to