Can I use one pooled datasource for multiple databases with Spring/Hibernate/c3p0?
问题 Our application uses Spring/Hibernate for database access. We use multiple hibernate session factories ( hibernate3.LocalSessionFactoryBean ), because the data is in a number of separate databases. Each session factory is configured with a pooled datasource using c3p0 ( c3p0.ComboPooledDataSource ). As it happens, the databases all reside on the same db server. Our issue is that we end up with a number of db connection pools, all connecting into the same server. Is there any way of sharing