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:
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.