Could you try with jboss 3.1 from cvs using the new ConnectionManager and LocalTransaction wrapper? Both parts of the code you are looking at are obsolete.
I'm not sure how to monitor the usage very well. I thought I put a query method in to ask for the current pool size, but apparently not in the mbean interface. Anyway if you see more than maxsize postgres connections being shut down with the new implementations ... let me know