As stated PgBouncer is used to manage connection pool , If the connection pool is managed by java then May I now If this is still used ?
Whether you want to use an external connection pooler like pgBouncer when you are doing in-container/in-application connection pooling is a decision you will need to make based upon your specific circumstances.