We are using MDBs which open connections to multiple Postgres databases. Sporadically, (say every 4-6 hours), when JBOSS is shutdown using the shutdown script, shutdown does not occur unitl all connections to postgres are killed. The MDBs close the connections.
We use org.postgresql.Driver as the jdbc driver.
Killing jboss is not an option as the JMS Queues are not processed on start up following an unclean shutdown.