The JDBCDataStore uses the schema parameter to build up queries. I would not be surprised if setting up a container shared pool the admin would still want to have each application hit a different database schema.
In fact, DBCP does not have a schema property in its configuration (
http://commons.apache.org/dbcp/configuration.html) and the PostGIS driver does not allow for a schema specification either:
http://jdbc.postgresql.org/documentation/83/connect.html#connection-parameters
It seems to me for DB2 (and Oracle) we're seeing a side effect that a user has a its own default schema (usually with the same name as the user) but this is not the rule in other databases.
parameters.put(SCHEMA.key, SCHEMA);
inside
protected void setupParameters(Map parameters)
Was there any reason why the schema was not included among the params thought?