[Geoserver-devel] How to get DB connection info. to committ some SQL statements

Hi,

I am currently using PostGIS DB for Geoserver. For testing something, I want to commit raw SQL statements to the PostGIS.

For example, if I request a certain layer via GetMapRequest, how can I get the DB connection info including the DBname/port, username and password?

I need this because I want to get some other information from unrequested layer…

Please suggest me what java classes and methods are used in the service modules, such as wms, wfs or w3ds.

Thanks,

J. Kim