Multiple data sources configuration
问题 I'm having trouble with the configuration of multiple DataSources in Grails 2.5.1. I'm using PostgreSQL 9.4.4, H2DB and hibernate 4.3.10 with GGTS. I'm getting the 'Table "XX" not found; SQL statement...' message and after a debug with the console, I found that the Session is returning the wrong driver: import teste.PTes; PTes.withSession { hibernateSession -> hibernateSession.getJdbcConnectionAccess().obtainConnection().getMetaData().getDriverName() } Result: H2 JDBC Driver This domain class